Package org.apache.thrift.server
Class TThreadPoolServer.Args
- java.lang.Object
-
- org.apache.thrift.server.TServer.AbstractServerArgs<TThreadPoolServer.Args>
-
- org.apache.thrift.server.TThreadPoolServer.Args
-
- Enclosing class:
- TThreadPoolServer
public static class TThreadPoolServer.Args extends TServer.AbstractServerArgs<TThreadPoolServer.Args>
-
-
Field Summary
Fields Modifier and Type Field Description intbeBackoffSlotLengthjava.util.concurrent.TimeUnitbeBackoffSlotLengthUnitjava.util.concurrent.ExecutorServiceexecutorServiceintmaxWorkerThreadsintminWorkerThreadsintrequestTimeoutjava.util.concurrent.TimeUnitrequestTimeoutUnitjava.util.concurrent.TimeUnitstopTimeoutUnitintstopTimeoutVal
-
Constructor Summary
Constructors Constructor Description Args(TServerTransport transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TThreadPoolServer.ArgsbeBackoffSlotLength(int n)TThreadPoolServer.ArgsbeBackoffSlotLengthUnit(java.util.concurrent.TimeUnit tu)TThreadPoolServer.ArgsexecutorService(java.util.concurrent.ExecutorService executorService)TThreadPoolServer.ArgsmaxWorkerThreads(int n)TThreadPoolServer.ArgsminWorkerThreads(int n)TThreadPoolServer.ArgsrequestTimeout(int n)TThreadPoolServer.ArgsrequestTimeoutUnit(java.util.concurrent.TimeUnit tu)TThreadPoolServer.ArgsstopTimeoutUnit(java.util.concurrent.TimeUnit tu)TThreadPoolServer.ArgsstopTimeoutVal(int n)-
Methods inherited from class org.apache.thrift.server.TServer.AbstractServerArgs
inputProtocolFactory, inputTransportFactory, outputProtocolFactory, outputTransportFactory, processor, processorFactory, protocolFactory, transportFactory
-
-
-
-
Field Detail
-
minWorkerThreads
public int minWorkerThreads
-
maxWorkerThreads
public int maxWorkerThreads
-
executorService
public java.util.concurrent.ExecutorService executorService
-
stopTimeoutVal
public int stopTimeoutVal
-
stopTimeoutUnit
public java.util.concurrent.TimeUnit stopTimeoutUnit
-
requestTimeout
public int requestTimeout
-
requestTimeoutUnit
public java.util.concurrent.TimeUnit requestTimeoutUnit
-
beBackoffSlotLength
public int beBackoffSlotLength
-
beBackoffSlotLengthUnit
public java.util.concurrent.TimeUnit beBackoffSlotLengthUnit
-
-
Constructor Detail
-
Args
public Args(TServerTransport transport)
-
-
Method Detail
-
minWorkerThreads
public TThreadPoolServer.Args minWorkerThreads(int n)
-
maxWorkerThreads
public TThreadPoolServer.Args maxWorkerThreads(int n)
-
stopTimeoutVal
public TThreadPoolServer.Args stopTimeoutVal(int n)
-
stopTimeoutUnit
public TThreadPoolServer.Args stopTimeoutUnit(java.util.concurrent.TimeUnit tu)
-
requestTimeout
public TThreadPoolServer.Args requestTimeout(int n)
-
requestTimeoutUnit
public TThreadPoolServer.Args requestTimeoutUnit(java.util.concurrent.TimeUnit tu)
-
beBackoffSlotLength
public TThreadPoolServer.Args beBackoffSlotLength(int n)
-
beBackoffSlotLengthUnit
public TThreadPoolServer.Args beBackoffSlotLengthUnit(java.util.concurrent.TimeUnit tu)
-
executorService
public TThreadPoolServer.Args executorService(java.util.concurrent.ExecutorService executorService)
-
-