public class ChannelAsyncOutputStream extends CloseableUtils.AbstractCloseable implements IoOutputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelAsyncOutputStream.IoWriteFutureImpl |
CloseableUtils.AbstractCloseable.StatecloseFuture, lock, log, state| 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, preClosepublic ChannelAsyncOutputStream(Channel channel, byte cmd)
public void onWindowExpanded()
throws IOException
IOExceptionpublic IoWriteFuture write(Buffer buffer)
IoOutputStreamwrite in interface IoOutputStreamprotected CloseFuture doCloseGracefully()
doCloseGracefully in class CloseableUtils.AbstractCloseableprotected void doWriteIfPossible(boolean resume)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.