public AbstractNioProcessor(NioHandler eventHandler, ChannelInitializer channelInitializer) { this.eventHandler = eventHandler; this.executor = Executors.newFixedThreadPool(Constants.AVAILABLE_PROCESSOR, new NamedThreadFactory("NioProcessorExecutor", true)); this.selectorLoop = new NioSelectorLoop("AcceptSelectorLoop-I/O", this); // this.readWriteSelectorPool = new FixedNioSelectorLoopPool(Constants.AVAILABLE_PROCESSOR + 1, "Server", this); this.idleDetector = new IdleDetector(); this.channelInitializer = channelInitializer; this.idleDetector.start(); }
public AbstractNioProcessor(NioHandler eventHandler, ChannelInitializer channelInitializer) { this.eventHandler = eventHandler; this.executor = Executors.newFixedThreadPool(Constants.AVAILABLE_PROCESSOR, new NamedThreadFactory("NioProcessorExecutor", true)); this.selectorLoop = new NioSelectorLoop("AcceptSelectorLoop-I/O", this); // this.readWriteSelectorPool = new FixedNioSelectorLoopPool(Constants.AVAILABLE_PROCESSOR + 1, "Server", this); this.idleDetector = new IdleDetector(); this.channelInitializer = channelInitializer; this.idleDetector.start(); }
public AbstractNioProcessor(NioHandler eventHandler, ChannelInitializer channelInitializer) { this.eventHandler = eventHandler; this.executor = Executors.newFixedThreadPool(Constants.AVAILABLE_PROCESSOR, new NamedThreadFactory("NioProcessorExecutor", true)); this.selectorLoop = new NioSelectorLoop("AcceptSelectorLoop-I/O", this); // this.readWriteSelectorPool = new FixedNioSelectorLoopPool(Constants.AVAILABLE_PROCESSOR + 1, "Server", this); this.idleDetector = new IdleDetector(); this.channelInitializer = channelInitializer; this.idleDetector.start(); }