| Modifier and Type | Field and Description |
|---|---|
| private AtomicReference | |
| private static final ChannelListener | INVOKED_CLOSE_LISTENER_FLAG
An empty listener used as a flag, to indicate that close listener has been invoked. |
| private static final Logger | |
| private ConduitStreamSinkChannel | |
| private ConduitStreamSourceChannel |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| 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 ConduitStreamSinkChannel | |
| public ConduitStreamSourceChannel | |
| pack-priv void | |
| private final ChannelListener | mergeListeners(final ChannelListener<? super StreamConnection> listener1, final ChannelListener<? super StreamConnection> listener2)
|
| protected void | notifyReadClosed()
Implements abstract org. Indicate to conduit handlers that reads have been closed. |
| protected void | notifyWriteClosed()
Implements abstract org. Indicate to conduit handlers that writes have been closed. |
| private static <T> T | |
| public void | setCloseListener(final ChannelListener<? super StreamConnection>
the close listener listener)Implements org. Set the close listener. |
| protected void | setSinkConduit(StreamSinkConduit
the sink conduit for this channel conduit)Set the sink conduit for this channel. |
| protected void | setSourceConduit(StreamSourceConduit
the source conduit for this channel conduit)Set the source conduit for this channel. |
| closeListener | back to summary |
|---|---|
| private AtomicReference<ChannelListener<? super StreamConnection>> closeListener | |
| INVOKED_CLOSE_LISTENER_FLAG | back to summary |
|---|---|
| private static final ChannelListener<? super StreamConnection> INVOKED_CLOSE_LISTENER_FLAG An empty listener used as a flag, to indicate that close listener has been invoked. | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| sinkChannel | back to summary |
|---|---|
| private ConduitStreamSinkChannel sinkChannel | |
| sourceChannel | back to summary |
|---|---|
| private ConduitStreamSourceChannel sourceChannel | |
| StreamConnection | back to summary |
|---|---|
| protected StreamConnection(final XnioIoThread thread) Construct a new instance.
| |
| 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.
| |
| getSinkChannel | back to summary |
|---|---|
| public ConduitStreamSinkChannel getSinkChannel() Get the sink channel.
| |
| getSourceChannel | back to summary |
|---|---|
| public ConduitStreamSourceChannel getSourceChannel() Get the source channel.
| |
| invokeCloseListener | back to summary |
|---|---|
| pack-priv void invokeCloseListener() Implements abstract org. | |
| mergeListeners | back to summary |
|---|---|
| private final ChannelListener | |
| notifyReadClosed | back to summary |
|---|---|
| protected void notifyReadClosed() Implements abstract org. Doc from org. Indicate to conduit handlers that reads have been closed.
| |
| notifyWriteClosed | back to summary |
|---|---|
| protected void notifyWriteClosed() Implements abstract org. Doc from org. Indicate to conduit handlers that writes have been closed.
| |
| notNull | back to summary |
|---|---|
| private static <T> T notNull(T orig) throws IllegalStateException | |
| setCloseListener | back to summary |
|---|---|
| public void setCloseListener(final ChannelListener<? super StreamConnection> listener) Implements org. Doc from org. Set the close listener.
| |
| setSinkConduit | back to summary |
|---|---|
| protected void setSinkConduit(StreamSinkConduit conduit) Set the sink conduit for this channel. The sink channel will automatically be updated.
| |
| setSourceConduit | back to summary |
|---|---|
| protected void setSourceConduit(StreamSourceConduit conduit) Set the source conduit for this channel. The source channel will automatically be updated.
| |