public abstract class MessageConnection extends Connection implements CloseListenerSettable<MessageConnection>
CloseListenerSettable.Setter<C extends Channel>threadEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
MessageConnection(XnioIoThread thread)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelListener<? super MessageConnection> |
getCloseListener()
Get the close listener.
|
ChannelListener.Setter<MessageConnection> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ConduitWritableMessageChannel |
getSinkChannel()
Get the sink channel.
|
ConduitReadableMessageChannel |
getSourceChannel()
Get the source channel.
|
void |
setCloseListener(ChannelListener<? super MessageConnection> listener)
Set the close listener.
|
protected void |
setSinkConduit(MessageSinkConduit conduit) |
protected void |
setSourceConduit(MessageSourceConduit conduit) |
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 MessageConnection(XnioIoThread thread)
thread - the I/O threadpublic void setCloseListener(ChannelListener<? super MessageConnection> listener)
CloseListenerSettablesetCloseListener in interface CloseListenerSettable<MessageConnection>listener - the close listenerpublic ChannelListener<? super MessageConnection> getCloseListener()
CloseListenerSettablegetCloseListener in interface CloseListenerSettable<MessageConnection>public ChannelListener.Setter<MessageConnection> getCloseSetter()
CloseableChannelgetCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface ConnectedChannelprotected void setSourceConduit(MessageSourceConduit conduit)
protected void setSinkConduit(MessageSinkConduit conduit)
public ConduitReadableMessageChannel getSourceChannel()
public ConduitWritableMessageChannel getSinkChannel()
Copyright © 2017 JBoss by Red Hat. All rights reserved.