public abstract class StreamConnection extends Connection implements CloseListenerSettable<StreamConnection>
CloseListenerSettable.Setter<C extends Channel>threadEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
StreamConnection(XnioIoThread thread)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelListener<? super StreamConnection> |
getCloseListener()
Get the close listener.
|
ChannelListener.Setter<? extends StreamConnection> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ConduitStreamSinkChannel |
getSinkChannel()
Get the sink channel.
|
ConduitStreamSourceChannel |
getSourceChannel()
Get the source channel.
|
void |
setCloseListener(ChannelListener<? super StreamConnection> listener)
Set the close listener.
|
protected void |
setSinkConduit(StreamSinkConduit conduit)
Set the sink conduit for this channel.
|
protected void |
setSourceConduit(StreamSourceConduit conduit)
Set the source conduit for this channel.
|
close, closeAction, getIoThread, getLocalAddress, getOption, getPeerAddress, getWorker, isOpen, isReadShutdown, isWriteShutdown, notifyReadClosed, notifyWriteClosed, readClosed, setOption, supportsOption, writeClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPeerAddressgetLocalAddressprotected StreamConnection(XnioIoThread thread)
thread - the I/O threadpublic void setCloseListener(ChannelListener<? super StreamConnection> listener)
CloseListenerSettablesetCloseListener in interface CloseListenerSettable<StreamConnection>listener - the close listenerpublic ChannelListener<? super StreamConnection> getCloseListener()
CloseListenerSettablegetCloseListener in interface CloseListenerSettable<StreamConnection>public ChannelListener.Setter<? extends StreamConnection> getCloseSetter()
CloseableChannelgetCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface ConnectedChannelprotected void setSourceConduit(StreamSourceConduit conduit)
conduit - the source conduit for this channelprotected void setSinkConduit(StreamSinkConduit conduit)
conduit - the sink conduit for this channelpublic ConduitStreamSourceChannel getSourceChannel()
public ConduitStreamSinkChannel getSinkChannel()
Copyright © 2017 JBoss by Red Hat. All rights reserved.