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)
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, writeClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPeerAddress
getLocalAddress
protected StreamConnection(XnioIoThread thread)
thread
- the I/O threadpublic 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)
conduit
- the source conduit for this channelprotected void setSinkConduit(StreamSinkConduit conduit)
conduit
- the sink conduit for this channelpublic ConduitStreamSourceChannel getSourceChannel()
public ConduitStreamSinkChannel getSinkChannel()
Copyright © 2016 JBoss by Red Hat. All rights reserved.