public class ChannelAsyncOutputStream extends CloseableUtils.AbstractCloseable implements IoOutputStream
CloseableUtils.AbstractCloseable.StatecloseFuture, lock, statelog| Constructor and Description |
|---|
ChannelAsyncOutputStream(Channel channel,
byte cmd) |
| Modifier and Type | Method and Description |
|---|---|
protected CloseFuture |
doCloseGracefully() |
protected void |
doWriteIfPossible(boolean resume) |
void |
onWindowExpanded() |
String |
toString() |
IoWriteFuture |
write(Buffer buffer)
NOTE: the buffer must not be touched until the returned write future is completed.
|
builder, close, doCloseImmediately, isClosed, isClosing, preCloseclose, isOpenpublic ChannelAsyncOutputStream(Channel channel, byte cmd)
public void onWindowExpanded()
throws IOException
IOExceptionpublic IoWriteFuture write(Buffer buffer)
IoOutputStreamwrite in interface IoOutputStreambuffer - the Buffer to useIoWriteFuture for the operationprotected CloseFuture doCloseGracefully()
doCloseGracefully in class CloseableUtils.AbstractCloseableprotected void doWriteIfPossible(boolean resume)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.