Package org.apache.thrift.server
Class THsHaServer.Args
java.lang.Object
org.apache.thrift.server.TServer.AbstractServerArgs<T>
org.apache.thrift.server.AbstractNonblockingServer.AbstractNonblockingServerArgs<THsHaServer.Args>
org.apache.thrift.server.THsHaServer.Args
- Enclosing class:
- THsHaServer
public static class THsHaServer.Args
extends AbstractNonblockingServer.AbstractNonblockingServerArgs<THsHaServer.Args>
-
Field Summary
FieldsFields inherited from class org.apache.thrift.server.AbstractNonblockingServer.AbstractNonblockingServerArgs
maxReadBufferBytes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutorService
(ExecutorService executorService) int
int
int
int
Deprecated.maxWorkerThreads
(int n) minWorkerThreads
(int n) stopTimeoutUnit
(TimeUnit stopTimeoutUnit) stopTimeoutVal
(int stopTimeoutVal) workerThreads
(int n) Deprecated.useminWorkerThreads(int)
andmaxWorkerThreads(int)
instead.Methods inherited from class org.apache.thrift.server.TServer.AbstractServerArgs
inputProtocolFactory, inputTransportFactory, outputProtocolFactory, outputTransportFactory, processor, processorFactory, protocolFactory, transportFactory
-
Field Details
-
minWorkerThreads
public int minWorkerThreads -
maxWorkerThreads
public int maxWorkerThreads
-
-
Constructor Details
-
Args
-
-
Method Details
-
workerThreads
Deprecated.useminWorkerThreads(int)
andmaxWorkerThreads(int)
instead.Sets the min and max threads. -
getWorkerThreads
Deprecated.usegetMinWorkerThreads()
andgetMaxWorkerThreads()
instead.- Returns:
- what the min threads was set to.
-
minWorkerThreads
-
maxWorkerThreads
-
getMinWorkerThreads
public int getMinWorkerThreads() -
getMaxWorkerThreads
public int getMaxWorkerThreads() -
getStopTimeoutVal
public int getStopTimeoutVal() -
stopTimeoutVal
-
getStopTimeoutUnit
-
stopTimeoutUnit
-
getExecutorService
-
executorService
-
getMinWorkerThreads()
andgetMaxWorkerThreads()
instead.