| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private StreamSourceChannel | |
| private ChannelListener | |
| private final StreamSourceChannel | |
| private ChannelListener |
| Access | Constructor and Description |
|---|---|
| public | PushBackStreamChannel(final StreamSourceChannel
the channel to wrap channel)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Implements org. Block until this channel becomes readable again, or until the timeout expires. |
| public void | close()
Implements java. Closes this channel. |
| public StreamSourceChannel | getChannel()
Implements org. Get the channel which is wrapped by this object. |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public XnioIoThread | getIoThread()
Implements org. Get the I/O thread associated with this channel. |
| public <T> T | getOption(final Option<T>
the option to get option)Implements org. Get the value of a channel option. |
| public ChannelListener. | getReadSetter()
Implements org. Get the setter which can be used to change the read listener for this channel. |
| public XnioExecutor | getReadThread()
Implements org.
Deprecated
Get the read thread for this channel. |
| public XnioWorker | getWorker()
Implements org. Get the worker for this channel. |
| public boolean | |
| public boolean | isReadResumed()
Implements org. Determine whether reads are resumed. |
| public int | read(final ByteBuffer
The buffer into which bytes are to be transferred dst)Implements java. Reads a sequence of bytes from this channel into the given buffer. |
| public long | read(final ByteBuffer[]
The buffers into which bytes are to be transferred dsts)Implements java. Reads a sequence of bytes from this channel into the given buffers. |
| public long | read(final ByteBuffer[]
The buffers into which bytes are to be transferred dsts, final int The offset within the buffer array of the first buffer into
which bytes are to be transferred; must be non-negative and no
larger than offset, final int dsts.lengthThe maximum number of buffers to be accessed; must be
non-negative and no larger than
length)dsts.length - offsetImplements java. Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
| public void | resumeReads()
Implements org. Resume reads on this channel. |
| public void | |
| public <T> T | setOption(final Option<T>
the option to set option, final T the value of the option to set value)Implements org. Set an option for this channel. |
| public void | |
| public void | shutdownReads()
Implements org. Places this readable channel at "end of stream". |
| public boolean | supportsOption(final Option<?>
the option option)Implements org. Determine whether an option is supported on this channel. |
| public void | suspendReads()
Implements org. Suspend further read notifications on this channel. |
| public long | transferTo(final long
the position within the file from which the transfer is to begin position, final long the number of bytes to be transferred count, final FileChannel the file to write to target)Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(final long
the number of bytes to be transferred count, final ByteBuffer the buffer to copy through. throughBuffer, final StreamSinkChannel the destination to write to target)Implements org. Transfers bytes into the given channel target. |
| public void | unget(Pooled<ByteBuffer>
the buffer to re-queue buffer)
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
Re-queue the given pooled buffer into this channel. |
| public void | wakeupReads()
Implements org.
|