| Modifier and Type | Field and Description |
|---|---|
| private ChannelListener | |
| private MessageSourceConduit | |
| private final Configurable | |
| private ChannelListener |
| Access | Constructor and Description |
|---|---|
| public | ConduitReadableMessageChannel(final Configurable
the configurable to delegate configuration requests to configurable, final MessageSourceConduit the initial conduit to use for data transport conduit)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 ConduitReadableMessageChannel | |
| public void | |
| public ChannelListener | getCloseListener()
Implements org. Get the close listener. |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public MessageSourceConduit | Returns: the underlying conduit for this channelGet the underlying conduit 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 | getReadListener()
Implements org. Get the read listener. |
| 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 long | receive(final ByteBuffer[]
the buffers that will hold the message dsts, final int the offset into the array of buffers of the first buffer to read into offset, final int the number of buffers to fill length)Implements org. Receive a message. |
| public long | receive(final ByteBuffer[]
the buffers that will hold the message dsts)Implements org. Receive a message. |
| public int | receive(final ByteBuffer
the buffer that will hold the message dst)Implements org. Receive a message. |
| public void | resumeReads()
Implements org. Resume reads on this channel. |
| public void | setCloseListener(final ChannelListener<? super ConduitReadableMessageChannel>
the close listener closeListener)Implements org. Set the close listener. |
| public void | setConduit(final MessageSourceConduit
the underlying conduit for this channel conduit)Set the underlying conduit for this channel. |
| 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 | setReadListener(final ChannelListener<? super ConduitReadableMessageChannel>
the read listener readListener)Implements org. Set the read listener. |
| 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 void | wakeupReads()
Implements org.
|
| closeListener | back to summary |
|---|---|
| private ChannelListener<? super ConduitReadableMessageChannel> closeListener | |
| conduit | back to summary |
|---|---|
| private MessageSourceConduit conduit | |
| configurable | back to summary |
|---|---|
| private final Configurable configurable | |
| readListener | back to summary |
|---|---|
| private ChannelListener<? super ConduitReadableMessageChannel> readListener | |
| ConduitReadableMessageChannel | back to summary |
|---|---|
| public ConduitReadableMessageChannel(final Configurable configurable, final MessageSourceConduit conduit) Construct a new instance.
| |
| 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(final long time, final TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this channel becomes readable again, or until the timeout expires. This method may return spuriously before the channel becomes readable or the timeout expires.
| |
| clone | back to summary |
|---|---|
| public ConduitReadableMessageChannel clone() Overrides java. Duplicate this channel. Changing the delegate conduit in one channel will not affect the other.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close this channel. When a channel is closed, its close listener is invoked. Invoking this method more than once has no additional effect.
| |
| getCloseListener | back to summary |
|---|---|
| public ChannelListener Implements org. Doc from org. Get the close listener.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getConduit | back to summary |
|---|---|
| public MessageSourceConduit getConduit() Get the underlying conduit for this channel.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements org. Doc from org. Get the I/O thread associated with this channel.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(final Option<T> option) throws IOException Implements org. Doc from org. Get the value of a channel option.
| |
| getReadListener | back to summary |
|---|---|
| public ChannelListener Implements org. Doc from org. Get the read listener.
| |
| getReadSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the read listener for this channel.
| |
| getReadThread | back to summary |
|---|---|
| public XnioExecutor getReadThread() Implements org. Doc from org. Deprecated
Get the read thread for this channel.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the worker for this channel.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Implements org. Doc from org. Determine whether reads are resumed.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] dsts, final int offset, final int length) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] dsts) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public int receive(final ByteBuffer dst) throws IOException Implements org. Doc from org. Receive a message.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Implements org. Doc from org. Resume reads on this channel. The read listener will be called as soon as there is data available to be read. | |
| setCloseListener | back to summary |
|---|---|
| public void setCloseListener(final ChannelListener<? super ConduitReadableMessageChannel> closeListener) Implements org. Doc from org. Set the close listener.
| |
| setConduit | back to summary |
|---|---|
| public void setConduit(final MessageSourceConduit conduit) Set the underlying conduit for this channel.
| |
| setOption | back to summary |
|---|---|
| public <T> T setOption(final Option<T> option, final T value) throws IllegalArgumentException, IOException Implements org. Doc from org. Set an option for this channel. Unsupported options are ignored.
| |
| setReadListener | back to summary |
|---|---|
| public void setReadListener(final ChannelListener<? super ConduitReadableMessageChannel> readListener) Implements org. Doc from org. Set the read listener.
| |
| shutdownReads | back to summary |
|---|---|
| public void shutdownReads() throws IOException Implements org. Doc from org. Places this readable channel at "end of stream". Further reads will result in EOF.
Shutting down all directions of a channel will cause
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(final Option<?> option) Implements org. Doc from org. Determine whether an option is supported on this channel.
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Implements org. Doc from org. Suspend further read notifications on this channel. | |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads() Implements org. Doc from org.
| |