
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) |
protected void |
setSourceConduit(StreamSourceConduit conduit) |
close, closeAction, getAttachment, 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)
worker - the XNIO workerpublic 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)
protected void setSinkConduit(StreamSinkConduit conduit)
public ConduitStreamSourceChannel getSourceChannel()
public ConduitStreamSinkChannel getSinkChannel()
Copyright © 2010 JBoss, a division of Red Hat, Inc.