public class ChannelEntry extends 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(SocketChannel channel)
Creates new ChannelEntry.
|
ChannelEntry(SocketChannel channel,
SessionRequestImpl sessionRequest)
Creates new ChannelEntry.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttachment()
Returns the original session request attachment, if available.
|
SocketChannel |
getChannel()
Returns the channel.
|
SessionRequestImpl |
getSessionRequest()
Returns the original session request, if available.
|
public ChannelEntry(SocketChannel channel, SessionRequestImpl sessionRequest)
channel - the channelsessionRequest - original session request. Can be null
if the channel represents an incoming server-side connection.public ChannelEntry(SocketChannel channel)
channel - the channel.public SessionRequestImpl getSessionRequest()
null.null otherwise.public Object getAttachment()
null otherwise.public SocketChannel getChannel()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.