public class ChannelAsyncOutputStream extends AbstractCloseable implements IoOutputStream, ChannelHolder
AbstractCloseable.StatecloseFuture, futureLock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
ChannelAsyncOutputStream(Channel channel,
byte cmd) |
| Modifier and Type | Method and Description |
|---|---|
protected CloseFuture |
doCloseGracefully() |
protected void |
doWriteIfPossible(boolean resume) |
Channel |
getChannel() |
void |
onWindowExpanded() |
protected void |
preClose() |
String |
toString() |
IoWriteFuture |
writePacket(Buffer buffer) |
addCloseFutureListener, builder, close, doCloseImmediately, getFutureLock, isClosed, isClosing, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenercalculatePadLengthpublic ChannelAsyncOutputStream(Channel channel, byte cmd)
public Channel getChannel()
getChannel in interface ChannelHolderChannel instancepublic void onWindowExpanded()
throws IOException
IOExceptionpublic IoWriteFuture writePacket(Buffer buffer) throws IOException
writePacket in interface PacketWriterIOExceptionprotected void preClose()
preClose in class AbstractCloseableprotected CloseFuture doCloseGracefully()
doCloseGracefully in class AbstractCloseableprotected void doWriteIfPossible(boolean resume)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.