public class ChannelAsyncInputStream extends CloseableUtils.AbstractCloseable implements IoInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelAsyncInputStream.IoReadFutureImpl |
CloseableUtils.AbstractCloseable.StatecloseFuture, lock, statelog| Constructor and Description |
|---|
ChannelAsyncInputStream(Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
protected CloseFuture |
doCloseGracefully() |
protected void |
preClose()
preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately.
|
IoReadFuture |
read(Buffer buf)
NOTE: the buffer must not be touched until the returned read future is completed.
|
String |
toString() |
void |
write(Readable src) |
builder, close, doCloseImmediately, isClosed, isClosingclose, isOpenpublic ChannelAsyncInputStream(Channel channel)
public void write(Readable src) throws IOException
IOExceptionpublic IoReadFuture read(Buffer buf)
IoInputStreamread in interface IoInputStreambuf - the Buffer to useIoReadFuture for the operationprotected void preClose()
CloseableUtils.AbstractCloseablepreClose in class CloseableUtils.AbstractCloseableprotected CloseFuture doCloseGracefully()
doCloseGracefully in class CloseableUtils.AbstractCloseableCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.