public NaRPCServerGroup(NaRPCService<R,T> service, int queueDepth, int messageSize, boolean nodelay, int arraySize) throws IOException{ super(queueDepth, messageSize, nodelay); this.dispatcherArray = new ArrayList<NaRPCDispatcher<R,T>>(arraySize); for (int i = 0; i < arraySize; i++) { NaRPCDispatcher<R,T> dispatcher = new NaRPCDispatcher<R,T>(this, service, i); Thread thread = new Thread(dispatcher); thread.start(); dispatcherArray.add(dispatcher); } this.arrayIndex = new AtomicInteger(0); LOG.info("new NaRPC server group v1.0, queueDepth " + this.getQueueDepth() + ", messageSize " + this.getMessageSize() + ", nodealy " + this.isNodelay() + ", cores " + arraySize); }