@InterfaceAudience.Private public class TBoundedThreadPoolServer extends TServer
Modifier and Type | Class and Description |
---|---|
static class |
TBoundedThreadPoolServer.Args |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_QUEUED_REQUESTS |
static int |
DEFAULT_MAX_WORKER_THREADS |
static int |
DEFAULT_MIN_WORKER_THREADS
This default core pool size should be enough for many test scenarios.
|
static String |
MAX_QUEUED_REQUESTS_CONF_KEY
The maximum number of pending connections waiting in the queue.
|
static String |
MAX_WORKER_THREADS_CONF_KEY
The maximum size of the thread pool.
|
static String |
MIN_WORKER_THREADS_CONF_KEY
The "core size" of the thread pool.
|
static String |
THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY
Default amount of time in seconds to keep a thread alive.
|
static int |
TIME_TO_WAIT_AFTER_SHUTDOWN_MS
Time to wait after interrupting all worker threads.
|
Constructor and Description |
---|
TBoundedThreadPoolServer(TBoundedThreadPoolServer.Args options,
ThriftMetrics metrics) |
public static final String MIN_WORKER_THREADS_CONF_KEY
public static final int DEFAULT_MIN_WORKER_THREADS
public static final String MAX_WORKER_THREADS_CONF_KEY
public static final int DEFAULT_MAX_WORKER_THREADS
public static final String MAX_QUEUED_REQUESTS_CONF_KEY
public static final int DEFAULT_MAX_QUEUED_REQUESTS
public static final String THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY
public static final int TIME_TO_WAIT_AFTER_SHUTDOWN_MS
public TBoundedThreadPoolServer(TBoundedThreadPoolServer.Args options, ThriftMetrics metrics)