public static class TcpWorker.MyPipelineFactory
extends java.lang.Object
implements org.jboss.netty.channel.ChannelPipelineFactory
Modifier and Type | Field and Description |
---|---|
private org.jboss.netty.channel.ChannelHandler |
idleStateHandler
The idle state handler.
|
private TcpWorker.MyIdleHandler |
myIdleHandler
The my idle handler.
|
private TcpWorker |
tcpWorker
The tcp worker.
|
Constructor and Description |
---|
MyPipelineFactory(org.jboss.netty.util.Timer timer,
TcpWorker tcpWorker,
int idleTimeoutSec)
Instantiates a new my pipeline factory.
|
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.ChannelPipeline |
getPipeline() |
private final org.jboss.netty.channel.ChannelHandler idleStateHandler
private final TcpWorker tcpWorker
private final TcpWorker.MyIdleHandler myIdleHandler
public MyPipelineFactory(org.jboss.netty.util.Timer timer, TcpWorker tcpWorker, int idleTimeoutSec)
timer
- the timertcpWorker
- the tcp workeridleTimeoutSec
- the idle timeout sec