protected class NioEndpoint.ChannelProcessor extends Object implements Runnable
ChannelProcessor
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool.
Created on Mar 6, 2012 at 9:10:06 AMModifier and Type | Field and Description |
---|---|
protected NioChannel |
channel |
protected SocketStatus |
status |
Constructor and Description |
---|
NioEndpoint.ChannelProcessor(NioChannel channel)
Create a new instance of
ChannelProcessor |
NioEndpoint.ChannelProcessor(NioChannel channel,
SocketStatus status)
Create a new instance of
ChannelProcessor |
Modifier and Type | Method and Description |
---|---|
protected void |
recycle()
Reset this channel processor
|
void |
run() |
void |
setChannel(NioChannel channel) |
void |
setStatus(SocketStatus status) |
protected void |
setup(NioChannel channel,
SocketStatus status) |
protected NioChannel channel
protected SocketStatus status
public NioEndpoint.ChannelProcessor(NioChannel channel)
ChannelProcessor
channel
- public NioEndpoint.ChannelProcessor(NioChannel channel, SocketStatus status)
ChannelProcessor
channel
- status
- protected void recycle()
protected void setup(NioChannel channel, SocketStatus status)
channel
- status
- public void setStatus(SocketStatus status)
status
- public void setChannel(NioChannel channel)
channel
- Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.