private final ExecutorService _executor;
private final boolean _localExecutor;
public InMemoryQueueByteArrayRequestConduit(int nWorkerThreads, ByteArrayRequestReceiver underlying) {
_underlying = underlying;
ThreadFactory tf = new NamedThreadPoolFactory("InMemoryQueueByteArrayRequestConduit", true);
ThreadPoolExecutor executor = new ThreadPoolExecutor(
0, nWorkerThreads, 5L, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), tf);
_executor = executor;
_localExecutor = true;
}