| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Buffer | |
| private final Channel | |
| private ChannelAsyncInputStream. | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CloseFuture | |
| private void | |
| public Channel | |
| protected void | preClose()
Overrides org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. |
| public IoReadFuture | read(Buffer
the buf)Buffer to useImplements org. Note the buffer must not be touched until the returned read future is completed. |
| public String | |
| public void |
| buffer | back to summary |
|---|---|
| private final Buffer buffer | |
| channelInstance | back to summary |
|---|---|
| private final Channel channelInstance | |
| pending | back to summary |
|---|---|
| private ChannelAsyncInputStream. | |
| readFutureId | back to summary |
|---|---|
| private final Object readFutureId | |
| ChannelAsyncInputStream | back to summary |
|---|---|
| public ChannelAsyncInputStream(Channel channel) | |
| doCloseGracefully | back to summary |
|---|---|
| protected CloseFuture doCloseGracefully() Overrides org.
| |
| doRead | back to summary |
|---|---|
private void doRead(boolean resume)
| |
| getChannel | back to summary |
|---|---|
| public Channel getChannel() Implements org.
| |
| preClose | back to summary |
|---|---|
| protected void preClose() Overrides org. Doc from org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. When preClose() is called, isClosing() == true
| |
| read | back to summary |
|---|---|
| public IoReadFuture read(Buffer buf) Implements org. Doc from org. Note the buffer must not be touched until the returned read future is completed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| public void write(Readable src) throws IOException | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | getBuffer()
Implements org. Retrieves the buffer data was read into. |
| public Throwable | getException()
Implements org. Returns the cause of the read failure. |
| public int | getRead()
Implements org. Retrieves the number of bytes read. |
| public IoReadFuture | verify(long
Wait timeout in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.Implements org. Wait and verify that the operation was successful |
| buffer | back to summary |
|---|---|
| pack-priv final Buffer buffer | |
| IoReadFutureImpl | back to summary |
|---|---|
| public IoReadFutureImpl(Object id, Buffer buffer) | |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Implements org. Doc from org. Retrieves the buffer data was read into. | |
| getException | back to summary |
|---|---|
| public Throwable getException() Implements org. Doc from org. Returns the cause of the read failure. An | |
| getRead | back to summary |
|---|---|
| public int getRead() Implements org. Doc from org. Retrieves the number of bytes read. | |
| verify | back to summary |
|---|---|
| public IoReadFuture verify(long timeoutMillis, CancelOption... options) throws IOException Implements org. Doc from org. Wait and verify that the operation was successful
| |