| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private volatile long | |
| private volatile XnioExecutor. | |
| private volatile long | |
| private volatile ReadReadyHandler | |
| private final StreamSinkConduit | |
| private final StreamSourceConduit | |
| private volatile boolean | |
| private final Runnable | |
| private volatile WriteReadyHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(long
the time to wait time, TimeUnit the time unit timeUnit)Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| public void | awaitWritable()
Implements org. Block until this channel becomes writable again. |
| public void | awaitWritable(long
the time to wait time, TimeUnit the time unit timeUnit)Implements org. Block until this conduit becomes writable again, or until the timeout expires. |
| protected void | |
| public boolean | |
| public long | |
| public XnioIoThread | |
| public XnioWorker | getWorker()
Implements org. Get the XNIO worker associated with this conduit. |
| public XnioIoThread | getWriteThread()
Implements org. Get the write thread for this conduit. |
| private void | |
| private void | |
| public boolean | isReadResumed()
Implements org. Determine whether read notifications are currently enabled. |
| public boolean | isReadShutdown()
Implements org. Determine whether reads have been shut down on this conduit. |
| public boolean | isWriteResumed()
Implements org. Determine whether write notifications are currently enabled. |
| public boolean | isWriteShutdown()
Implements org. Determine whether writes have been fully shut down on this conduit. |
| public long | read(ByteBuffer[]
the buffers to fill with data from the conduit dsts, int the offset into the buffer array offset, int the number of buffers to fill length)Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public int | read(ByteBuffer
the buffer to fill with data from the conduit dst)Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| public void | resumeReads()
Implements org. Indicate that the conduit's |
| public void | resumeWrites()
Implements org. Indicate that the conduit's |
| private static void | |
| private static void | |
| public void | |
| public void | setReadReadyHandler(ReadReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | setWriteReadyHandler(WriteReadyHandler
the filter to receive readiness notifications handler)Implements org. Set the handler which should receive readiness notifications. |
| public void | suspendReads()
Implements org. Indicate that calling the conduit's |
| public void | suspendWrites()
Implements org. Indicate that calling the conduit's |
| public void | terminateReads()
Implements org. Indicate that no more data will be read from this conduit. |
| public void | terminateWrites()
Implements org. Signal that no more write data is forthcoming. |
| public long | transferFrom(FileChannel
the file to read from src, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Implements org. Transfer bytes into this conduit from the given file. |
| public long | transferFrom(StreamSourceChannel
the source to read from source, long the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer)Implements org. Transfers bytes from the given channel source. |
| public long | transferTo(long
the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count, FileChannel the file to write to target)Implements org. Transfers bytes into the given file from this channel. |
| public long | transferTo(long
the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer, StreamSinkChannel the destination to write to target)Implements org. Transfers bytes into the given channel target. |
| public void | truncateWrites()
Implements org. Terminate writes and discard any outstanding write data. |
| public void | wakeupReads()
Implements org. Indicate that the conduit's |
| public void | wakeupWrites()
Implements org. Indicate that the conduit's |
| public int | write(ByteBuffer
the buffer containing data to write src)Implements org. Writes a sequence of bytes to this conduit from the given buffer. |
| public long | write(ByteBuffer[]
the buffers containing data to write srcs, int the offset into the buffer array offset, int the number of buffers to write length)Implements org. Writes a sequence of bytes to this conduit from the given buffers. |
| public int | writeFinal(ByteBuffer
The data to write src)Implements org. Writes some data to the conduit, with the same semantics as
|
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than srcs.length offset, int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset length)Implements org. Writes some data to the conduit, with the same semantics as
|
| DELTA | back to summary |
|---|---|
| private static final int DELTA | |
| expireTime | back to summary |
|---|---|
| private volatile long expireTime | |
| handle | back to summary |
|---|---|
| private volatile XnioExecutor. | |
| idleTimeout | back to summary |
|---|---|
| private volatile long idleTimeout | |
| readReadyHandler | back to summary |
|---|---|
| private volatile ReadReadyHandler readReadyHandler | |
| sink | back to summary |
|---|---|
| private final StreamSinkConduit sink | |
| source | back to summary |
|---|---|
| private final StreamSourceConduit source | |
| timedOut | back to summary |
|---|---|
| private volatile boolean timedOut | |
| timeoutCommand | back to summary |
|---|---|
| private final Runnable timeoutCommand | |
| writeReadyHandler | back to summary |
|---|---|
| private volatile WriteReadyHandler writeReadyHandler | |
| IdleTimeoutConduit | back to summary |
|---|---|
| public IdleTimeoutConduit(StreamConnection connection) | |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Implements org. Doc from org. Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(long time, TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this conduit becomes readable again, or until the timeout expires. This method may return spuriously before the conduit becomes readable or the timeout expires.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable() throws IOException Implements org. Doc from org. Block until this channel becomes writable again. This method may return spuriously before the channel becomes writable.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable(long time, TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this conduit becomes writable again, or until the timeout expires. This method may return spuriously before the conduit becomes writable or the timeout expires.
| |
| doClose | back to summary |
|---|---|
| protected void doClose() | |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getReadThread | back to summary |
|---|---|
| public XnioIoThread getReadThread() Implements org. Doc from org. Get the XNIO read thread.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the XNIO worker associated with this conduit.
| |
| getWriteThread | back to summary |
|---|---|
| public XnioIoThread getWriteThread() Implements org. Doc from org. Get the write thread for this conduit.
| |
| handleIdleTimeout | back to summary |
|---|---|
| private void handleIdleTimeout() throws ClosedChannelException | |
| handleResumeTimeout | back to summary |
|---|---|
| private void handleResumeTimeout() | |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Implements org. Doc from org. Determine whether read notifications are currently enabled.
| |
| isReadShutdown | back to summary |
|---|---|
| public boolean isReadShutdown() Implements org. Doc from org. Determine whether reads have been shut down on this conduit.
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Implements org. Doc from org. Determine whether write notifications are currently enabled.
| |
| isWriteShutdown | back to summary |
|---|---|
| public boolean isWriteShutdown() Implements org. Doc from org. Determine whether writes have been fully shut down on this conduit.
| |
| read | back to summary |
|---|---|
| public long read(ByteBuffer[] dsts, int offset, int length) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| read | back to summary |
|---|---|
| public int read(ByteBuffer dst) throws IOException Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Implements org. Doc from org. Indicate that the conduit's
| |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Implements org. Doc from org. Indicate that the conduit's
| |
| safeClose | back to summary |
|---|---|
| private static void safeClose(final StreamSourceConduit sink) | |
| safeClose | back to summary |
|---|---|
| private static void safeClose(final StreamSinkConduit sink) | |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) | |
| setReadReadyHandler | back to summary |
|---|---|
| public void setReadReadyHandler(ReadReadyHandler handler) Implements org. Doc from org. Set the handler which should receive readiness notifications. A filter may pass this invocation on to the filter it wraps, or it may substitute itself.
| |
| setWriteReadyHandler | back to summary |
|---|---|
| public void setWriteReadyHandler(WriteReadyHandler handler) Implements org. Doc from org. Set the handler which should receive readiness notifications. A filter may pass this invocation on to the filter it wraps, or it may substitute itself.
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Implements org. Doc from org. Indicate that calling the conduit's
| |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Implements org. Doc from org. Indicate that calling the conduit's
| |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException Implements org. Doc from org. Indicate that no more data will be read from this conduit. If unread data exists, an exception may be thrown.
| |
| terminateWrites | back to summary |
|---|---|
| public void terminateWrites() throws IOException Implements org. Doc from org. Signal that no more write data is forthcoming. The conduit must be
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(FileChannel src, long position, long count) throws IOException Implements org. Doc from org. Transfer bytes into this conduit from the given file.
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException Implements org. Doc from org. Transfers bytes from the given channel source. On entry,
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long position, long count, FileChannel target) throws IOException Implements org. Doc from org. Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(long count, ByteBuffer throughBuffer, StreamSinkChannel target) throws IOException Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |
| truncateWrites | back to summary |
|---|---|
| public void truncateWrites() throws IOException Implements org. Doc from org. Terminate writes and discard any outstanding write data. The conduit is terminated and flushed regardless of the outcome of this method.
| |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads() Implements org. Doc from org. Indicate that the conduit's
| |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Implements org. Doc from org. Indicate that the conduit's
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffer.
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs, int offset, int length) throws IOException Implements org. Doc from org. Writes a sequence of bytes to this conduit from the given buffers.
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(ByteBuffer src) throws IOException Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException Implements org. Doc from org. Writes some data to the conduit, with the same semantics as
| |