Package org.apache.hadoop.hbase.executor
Class ExecutorService.ExecutorConfig
java.lang.Object
org.apache.hadoop.hbase.executor.ExecutorService.ExecutorConfig
- Enclosing class:
- ExecutorService
Configuration wrapper for
ExecutorService.Executor
.-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private ExecutorType
static final long
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
private ExecutorType
long
getName()
Returns the executor name inferred from the type and the servername on which this is running.setAllowCoreThreadTimeout
(boolean allowCoreThreadTimeout) Allows timing out of core threads.setCorePoolSize
(int corePoolSize) setExecutorType
(ExecutorType type) setKeepAliveTimeMillis
(long keepAliveTimeMillis)
-
Field Details
-
KEEP_ALIVE_TIME_MILLIS_DEFAULT
- See Also:
-
corePoolSize
-
allowCoreThreadTimeout
-
keepAliveTimeMillis
-
executorType
-
-
Constructor Details
-
ExecutorConfig
public ExecutorConfig()
-
-
Method Details
-
setExecutorType
-
getExecutorType
-
getCorePoolSize
-
setCorePoolSize
-
allowCoreThreadTimeout
-
setAllowCoreThreadTimeout
Allows timing out of core threads. Good to set this for non-critical thread pools for release of unused resources. Refer toThreadPoolExecutor.allowCoreThreadTimeOut(boolean)
for additional details. -
getName
Returns the executor name inferred from the type and the servername on which this is running. -
getKeepAliveTimeMillis
-
setKeepAliveTimeMillis
-