public class ChannelAsyncInputStream extends AbstractCloseable implements IoInputStream, ChannelHolder
Modifier and Type | Class and Description |
---|---|
static class |
ChannelAsyncInputStream.IoReadFutureImpl |
AbstractCloseable.State
closeFuture, futureLock, state
log
Constructor and Description |
---|
ChannelAsyncInputStream(Channel channel) |
Modifier and Type | Method and Description |
---|---|
protected CloseFuture |
doCloseGracefully() |
Channel |
getChannel() |
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) |
addCloseFutureListener, builder, close, doCloseImmediately, getFutureLock, isClosed, isClosing, removeCloseFutureListener
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
public ChannelAsyncInputStream(Channel channel)
public Channel getChannel()
getChannel
in interface ChannelHolder
Channel
instancepublic void write(Readable src) throws IOException
IOException
public IoReadFuture read(Buffer buf)
IoInputStream
read
in interface IoInputStream
buf
- the Buffer
to useIoReadFuture
for the operationprotected void preClose()
AbstractCloseable
preClose
in class AbstractCloseable
protected CloseFuture doCloseGracefully()
doCloseGracefully
in class AbstractCloseable
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.