public static class TThreadPoolServer.Args extends TServer.AbstractServerArgs<TThreadPoolServer.Args>
Modifier and Type | Field and Description |
---|---|
java.util.concurrent.ExecutorService |
executorService |
int |
maxWorkerThreads |
int |
minWorkerThreads |
java.util.concurrent.TimeUnit |
stopTimeoutUnit |
int |
stopTimeoutVal |
Constructor and Description |
---|
TThreadPoolServer.Args(TServerTransport transport) |
Modifier and Type | Method and Description |
---|---|
TThreadPoolServer.Args |
executorService(java.util.concurrent.ExecutorService executorService) |
TThreadPoolServer.Args |
maxWorkerThreads(int n) |
TThreadPoolServer.Args |
minWorkerThreads(int n) |
inputProtocolFactory, inputTransportFactory, outputProtocolFactory, outputTransportFactory, processor, processorFactory, protocolFactory, transportFactory
public int minWorkerThreads
public int maxWorkerThreads
public java.util.concurrent.ExecutorService executorService
public int stopTimeoutVal
public java.util.concurrent.TimeUnit stopTimeoutUnit
public TThreadPoolServer.Args(TServerTransport transport)
public TThreadPoolServer.Args minWorkerThreads(int n)
public TThreadPoolServer.Args maxWorkerThreads(int n)
public TThreadPoolServer.Args executorService(java.util.concurrent.ExecutorService executorService)