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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate ExecutorTypestatic final longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintprivate ExecutorTypelonggetName()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.allowCoreThreadTimeOutfor additional details. -
getName
Returns the executor name inferred from the type and the servername on which this is running. -
getKeepAliveTimeMillis
-
setKeepAliveTimeMillis
-