public class ChannelAsyncInputStream extends AbstractCloseable implements IoInputStream, ChannelHolder
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelAsyncInputStream.IoReadFutureImpl |
AbstractCloseable.StatecloseFuture, futureLock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
ChannelAsyncInputStream(Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
protected CloseFuture |
doCloseGracefully() |
Channel |
getChannel() |
protected void |
preClose() |
IoReadFuture |
read(Buffer buf) |
String |
toString() |
void |
write(Readable src) |
addCloseFutureListener, builder, close, doCloseImmediately, getFutureLock, isClosed, isClosing, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerpublic ChannelAsyncInputStream(Channel channel)
public Channel getChannel()
getChannel in interface ChannelHolderChannel instancepublic void write(Readable src) throws IOException
IOExceptionpublic IoReadFuture read(Buffer buf)
read in interface IoInputStreamprotected void preClose()
preClose in class AbstractCloseableprotected CloseFuture doCloseGracefully()
doCloseGracefully in class AbstractCloseableCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.