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
Fields Modifier and Type Field Description intmaxWorkerThreadsintminWorkerThreads-
Fields inherited from class org.apache.thrift.server.AbstractNonblockingServer.AbstractNonblockingServerArgs
maxReadBufferBytes
-
-
Constructor Summary
Constructors Constructor Description Args(TNonblockingServerTransport transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description THsHaServer.ArgsexecutorService(java.util.concurrent.ExecutorService executorService)java.util.concurrent.ExecutorServicegetExecutorService()intgetMaxWorkerThreads()intgetMinWorkerThreads()java.util.concurrent.TimeUnitgetStopTimeoutUnit()intgetStopTimeoutVal()intgetWorkerThreads()Deprecated.usegetMinWorkerThreads()andgetMaxWorkerThreads()instead.THsHaServer.ArgsmaxWorkerThreads(int n)THsHaServer.ArgsminWorkerThreads(int n)THsHaServer.ArgsstopTimeoutUnit(java.util.concurrent.TimeUnit stopTimeoutUnit)THsHaServer.ArgsstopTimeoutVal(int stopTimeoutVal)THsHaServer.ArgsworkerThreads(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
-
-
-
-
Constructor Detail
-
Args
public Args(TNonblockingServerTransport transport)
-
-
Method Detail
-
workerThreads
@Deprecated public THsHaServer.Args workerThreads(int n)
Deprecated.useminWorkerThreads(int)andmaxWorkerThreads(int)instead.Sets the min and max threads.
-
getWorkerThreads
@Deprecated public int getWorkerThreads()
Deprecated.usegetMinWorkerThreads()andgetMaxWorkerThreads()instead.- Returns:
- what the min threads was set to.
-
minWorkerThreads
public THsHaServer.Args minWorkerThreads(int n)
-
maxWorkerThreads
public THsHaServer.Args maxWorkerThreads(int n)
-
getMinWorkerThreads
public int getMinWorkerThreads()
-
getMaxWorkerThreads
public int getMaxWorkerThreads()
-
getStopTimeoutVal
public int getStopTimeoutVal()
-
stopTimeoutVal
public THsHaServer.Args stopTimeoutVal(int stopTimeoutVal)
-
getStopTimeoutUnit
public java.util.concurrent.TimeUnit getStopTimeoutUnit()
-
stopTimeoutUnit
public THsHaServer.Args stopTimeoutUnit(java.util.concurrent.TimeUnit stopTimeoutUnit)
-
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService()
-
executorService
public THsHaServer.Args executorService(java.util.concurrent.ExecutorService executorService)
-
-