public abstract class StreamConnection extends Connection implements CloseListenerSettable<StreamConnection>
CloseListenerSettable.Setter<C extends Channel>
thread
EMPTY
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, writeClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPeerAddress
getLocalAddress
protected StreamConnection(XnioIoThread thread)
worker
- the XNIO workerpublic void setCloseListener(ChannelListener<? super StreamConnection> listener)
CloseListenerSettable
setCloseListener
in interface CloseListenerSettable<StreamConnection>
listener
- the close listenerpublic ChannelListener<? super StreamConnection> getCloseListener()
CloseListenerSettable
getCloseListener
in interface CloseListenerSettable<StreamConnection>
public ChannelListener.Setter<? extends StreamConnection> getCloseSetter()
CloseableChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
protected void setSourceConduit(StreamSourceConduit conduit)
protected void setSinkConduit(StreamSinkConduit conduit)
public ConduitStreamSourceChannel getSourceChannel()
public ConduitStreamSinkChannel getSinkChannel()
Copyright © 2013 JBoss by Red Hat. All rights reserved.