org.xnio.Options#READ_TIMEOUT
| Modifier and Type | Field and Description |
|---|---|
| private final StreamConnection | |
| private volatile boolean | |
| private volatile long | |
| private static final int | |
| private volatile XnioExecutor. | |
| private final OpenListener | |
| private final Runnable |
| Access | Constructor and Description |
|---|---|
| public | ReadTimeoutStreamSourceConduit(final StreamSourceConduit delegate, StreamConnection connection, OpenListener openListener)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Overrides org. Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(long
the time to wait time, TimeUnit the time unit timeUnit)Overrides org. Implements org. Block until this conduit becomes readable again, or until the timeout expires. |
| private void | |
| private void | |
| private Integer | |
| private void | |
| public long | read(final ByteBuffer[]
the buffers to fill with data from the conduit dsts, final int the offset into the buffer array offset, final int the number of buffers to fill length)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffers. |
| public int | read(final ByteBuffer
the buffer to fill with data from the conduit dst)Overrides org. Implements org. Read a sequence of bytes from this conduit to the given buffer. |
| public void | resumeReads()
Overrides org. Implements org. Indicate that the conduit's |
| public void | suspendReads()
Overrides org. Implements org. Indicate that calling the conduit's |
| public void | terminateReads()
Overrides org. Implements org. Indicate that no more data will be read from this conduit. |
| public String | |
| 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)Overrides org. 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)Overrides org. Implements org. Transfers bytes into the given channel target. |
| connection | back to summary |
|---|---|
| private final StreamConnection connection | |
| expired | back to summary |
|---|---|
| private volatile boolean expired | |
| expireTime | back to summary |
|---|---|
| private volatile long expireTime | |
| FUZZ_FACTOR | back to summary |
|---|---|
| private static final int FUZZ_FACTOR | |
| handle | back to summary |
|---|---|
| private volatile XnioExecutor. | |
| openListener | back to summary |
|---|---|
| private final OpenListener openListener | |
| timeoutCommand | back to summary |
|---|---|
| private final Runnable timeoutCommand | |
| ReadTimeoutStreamSourceConduit | back to summary |
|---|---|
| public ReadTimeoutStreamSourceConduit(final StreamSourceConduit delegate, StreamConnection connection, OpenListener openListener) | |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Overrides org. 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 Overrides org. 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.
| |
| checkExpired | back to summary |
|---|---|
| private void checkExpired() throws ReadTimeoutException | |
| cleanup | back to summary |
|---|---|
| private void cleanup() | |
| getTimeout | back to summary |
|---|---|
| private Integer getTimeout() | |
| handleReadTimeout | back to summary |
|---|---|
| private void handleReadTimeout(final long ret) throws IOException | |
| read | back to summary |
|---|---|
| public long read(final ByteBuffer[] dsts, final int offset, final int length) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffers.
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst) throws IOException Overrides org. Implements org. Doc from org. Read a sequence of bytes from this conduit to the given buffer.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Overrides org. Implements org. Doc from org. Indicate that the conduit's
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Overrides org. Implements org. Doc from org. Indicate that calling the conduit's
| |
| terminateReads | back to summary |
|---|---|
| public void terminateReads() throws IOException Overrides org. 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.
| |
| 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-
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long position, final long count, final FileChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given file from this channel.
| |
| transferTo | back to summary |
|---|---|
| public long transferTo(final long count, final ByteBuffer throughBuffer, final StreamSinkChannel target) throws IOException Overrides org. Implements org. Doc from org. Transfers bytes into the given channel target. On entry,
| |