public class ExecutorFactoryImpl extends java.lang.Object implements ExecutorFactory
foo.bar,
the factory will look for a configuration in the following
way:
ALLOW_CORE_THREADS_TIMEOUT, BYPASS_IF_SYNCHRONOUS, CORE_POOL_SIZE, KEEP_ALIVE_TIME, MAXIMUM_POOL_SIZE, QUEUE_SIZE, SHUTDOWN_DELAY, THREAD_DAEMON, THREAD_PRIORITY| Constructor and Description |
|---|
ExecutorFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Executor |
createDaemonExecutor(java.lang.String id)
Create a new daemon executor for the given Id.
|
Executor |
createExecutor(java.lang.String id)
Create a new executor for the given Id.
|
Executor |
createExecutor(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> configuration)
Create a new executor for the given id
using the additional configuration options provided.
|
protected java.util.concurrent.ThreadPoolExecutor |
createService(java.lang.String id,
ExecutorConfig config) |
protected ExecutorConfig |
getConfig(java.lang.String id) |
java.util.Map<java.lang.String,ExecutorConfig> |
getConfigs() |
ExecutorConfig |
getDefaultConfig() |
org.fusesource.commons.management.ManagementStrategy |
getManagementStrategy() |
javax.management.MBeanServer |
getMbeanServer() |
void |
setConfigs(java.util.Map<java.lang.String,ExecutorConfig> configs) |
void |
setDefaultConfig(ExecutorConfig defaultConfig) |
void |
setManagementStrategy(org.fusesource.commons.management.ManagementStrategy managementStrategy) |
void |
setMbeanServer(javax.management.MBeanServer mbeanServer) |
public Executor createExecutor(java.lang.String id)
ExecutorFactorycreateExecutor in interface ExecutorFactoryid - the id of the executor to createpublic Executor createExecutor(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> configuration)
ExecutorFactorycreateExecutor in interface ExecutorFactoryid - the id of the executor to createconfiguration - the additional executor configuration optionspublic Executor createDaemonExecutor(java.lang.String id)
ExecutorFactorycreateDaemonExecutor in interface ExecutorFactoryid - the id of the executor to createprotected ExecutorConfig getConfig(java.lang.String id)
protected java.util.concurrent.ThreadPoolExecutor createService(java.lang.String id,
ExecutorConfig config)
public java.util.Map<java.lang.String,ExecutorConfig> getConfigs()
public void setConfigs(java.util.Map<java.lang.String,ExecutorConfig> configs)
configs - the configs to setpublic ExecutorConfig getDefaultConfig()
public void setDefaultConfig(ExecutorConfig defaultConfig)
defaultConfig - the defaultConfig to setpublic javax.management.MBeanServer getMbeanServer()
public void setMbeanServer(javax.management.MBeanServer mbeanServer)
public org.fusesource.commons.management.ManagementStrategy getManagementStrategy()
public void setManagementStrategy(org.fusesource.commons.management.ManagementStrategy managementStrategy)
Copyright © 2005-2014 FuseSource. All Rights Reserved.