this(Executors.newCachedThreadPool());
}
public SmppSimulatorServer(ExecutorService executors) {
// used for tracking any child channels (sessions)
this.sessionChannels = new DefaultChannelGroup();
// we'll put the "boss" worker for a server in its own pool
this.bossThreadPool = Executors.newCachedThreadPool();
// a factory for creating channels (connections)
this.channelFactory = new NioServerSocketChannelFactory(this.bossThreadPool, executors);
// tie the server bootstrap to this server socket channel factory