public class ChannelEntry
extends java.lang.Object
SocketChannel
entry maintained by the I/O reactor. If the channel
represents an outgoing client connection, this entry also contains the
original SessionRequestImpl
used to request it.Constructor and Description |
---|
ChannelEntry(java.nio.channels.SocketChannel channel)
Creates new ChannelEntry.
|
ChannelEntry(java.nio.channels.SocketChannel channel,
SessionRequestImpl sessionRequest)
Creates new ChannelEntry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttachment()
Returns the original session request attachment, if available.
|
java.nio.channels.SocketChannel |
getChannel()
Returns the channel.
|
SessionRequestImpl |
getSessionRequest()
Returns the original session request, if available.
|
public ChannelEntry(java.nio.channels.SocketChannel channel, SessionRequestImpl sessionRequest)
channel
- the channelsessionRequest
- original session request. Can be null
if the channel represents an incoming server-side connection.public ChannelEntry(java.nio.channels.SocketChannel channel)
channel
- the channel.public SessionRequestImpl getSessionRequest()
null
.null
otherwise.public java.lang.Object getAttachment()
null
otherwise.public java.nio.channels.SocketChannel getChannel()
Copyright © 2010 - 2019 Adobe. All Rights Reserved