public class ChannelAsyncOutputStream extends AbstractCloseable implements IoOutputStream
AbstractCloseable.State
closeFuture, lock, state
log
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, preClose
close, isOpen
public ChannelAsyncOutputStream(Channel channel, byte cmd)
public void onWindowExpanded() throws IOException
IOException
public IoWriteFuture write(Buffer buffer)
IoOutputStream
write
in interface IoOutputStream
buffer
- the Buffer
to useIoWriteFuture
for the operationprotected CloseFuture doCloseGracefully()
doCloseGracefully
in class AbstractCloseable
protected void doWriteIfPossible(boolean resume)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.