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 |
|---|
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) |
TThreadPoolServer.Args |
stopTimeoutUnit(java.util.concurrent.TimeUnit tu) |
TThreadPoolServer.Args |
stopTimeoutVal(int n) |
inputProtocolFactory, inputTransportFactory, outputProtocolFactory, outputTransportFactory, processor, processorFactory, protocolFactory, transportFactorypublic int minWorkerThreads
public int maxWorkerThreads
public java.util.concurrent.ExecutorService executorService
public int stopTimeoutVal
public java.util.concurrent.TimeUnit stopTimeoutUnit
public Args(TServerTransport transport)
public TThreadPoolServer.Args minWorkerThreads(int n)
public TThreadPoolServer.Args maxWorkerThreads(int n)
public TThreadPoolServer.Args stopTimeoutVal(int n)
public TThreadPoolServer.Args stopTimeoutUnit(java.util.concurrent.TimeUnit tu)
public TThreadPoolServer.Args executorService(java.util.concurrent.ExecutorService executorService)