org.apache.servicemix.executors.impl
Class ExecutorConfig
java.lang.Object
org.apache.servicemix.executors.impl.ExecutorConfig
public class ExecutorConfig
- extends java.lang.Object
This bean holds configuration attributes for a given Executor.
- Author:
- Guillaume Nodet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CORE_POOL_SIZE
public static final int DEFAULT_CORE_POOL_SIZE
- See Also:
- Constant Field Values
DEFAULT_MAXIMUM_POOL_SIZE
public static final int DEFAULT_MAXIMUM_POOL_SIZE
- See Also:
- Constant Field Values
DEFAULT_KEEP_ALIVE_TIME
public static final long DEFAULT_KEEP_ALIVE_TIME
- See Also:
- Constant Field Values
DEFAULT_THREAD_DAEMON
public static final boolean DEFAULT_THREAD_DAEMON
- See Also:
- Constant Field Values
DEFAULT_THREAD_PRIORITY
public static final int DEFAULT_THREAD_PRIORITY
- See Also:
- Constant Field Values
DEFAULT_QUEUE_SIZE
public static final int DEFAULT_QUEUE_SIZE
- See Also:
- Constant Field Values
DEFAULT_SHUTDOWN_DELAY
public static final long DEFAULT_SHUTDOWN_DELAY
- See Also:
- Constant Field Values
DEFAULT_ALLOW_CORE_THREAD_TIMEOUT
public static final boolean DEFAULT_ALLOW_CORE_THREAD_TIMEOUT
- See Also:
- Constant Field Values
DEFAULT_BYPASS_IF_SYNCHRONOUS
public static final boolean DEFAULT_BYPASS_IF_SYNCHRONOUS
- See Also:
- Constant Field Values
ExecutorConfig
public ExecutorConfig()
- default constructor needed by spring beans
ExecutorConfig
public ExecutorConfig(boolean isDefaultConfig,
ExecutorConfig parent)
- creates a new executor config using the given parent
- Parameters:
parent - the parent config
getCorePoolSize
public int getCorePoolSize()
- Returns:
- the corePoolSize
setCorePoolSize
public void setCorePoolSize(int corePoolSize)
- Parameters:
corePoolSize - the corePoolSize to set
getKeepAliveTime
public long getKeepAliveTime()
- Returns:
- the keepAlive
setKeepAliveTime
public void setKeepAliveTime(long keepAlive)
- Parameters:
keepAlive - the keepAlive to set
getMaximumPoolSize
public int getMaximumPoolSize()
- Returns:
- the maximumPoolSize
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize)
- Parameters:
maximumPoolSize - the maximumPoolSize to set
getQueueSize
public int getQueueSize()
- Returns:
- the queueSize
setQueueSize
public void setQueueSize(int queueSize)
- Parameters:
queueSize - the queueSize to set
isThreadDaemon
public boolean isThreadDaemon()
- Returns:
- the threadDaemon
setThreadDaemon
public void setThreadDaemon(boolean threadDaemon)
- Parameters:
threadDaemon - the threadDaemon to set
getThreadPriority
public int getThreadPriority()
- Returns:
- the threadPriority
setThreadPriority
public void setThreadPriority(int threadPriority)
- Parameters:
threadPriority - the threadPriority to set
getShutdownDelay
public long getShutdownDelay()
- Returns:
- the shutdownDelay
setShutdownDelay
public void setShutdownDelay(long shutdownDelay)
- Parameters:
shutdownDelay - the shutdownDelay to set
isAllowCoreThreadsTimeout
public boolean isAllowCoreThreadsTimeout()
- Returns:
- the allowCoreThreadsTimeout
setAllowCoreThreadsTimeout
public void setAllowCoreThreadsTimeout(boolean allowCoreThreadsTimeout)
- Parameters:
allowCoreThreadsTimeout - the allowCoreThreadsTimeout to set
isBypassIfSynchronous
public boolean isBypassIfSynchronous()
- Returns:
- if synchronous tasks should bypass the executor
setBypassIfSynchronous
public void setBypassIfSynchronous(boolean bypassIfSynchronous)
- Parameters:
bypassIfSynchronous - if synchronous tasks should bypass the executor
getParent
public ExecutorConfig getParent()
setParent
public void setParent(ExecutorConfig parent)
Copyright © 2005-2011 FuseSource. All Rights Reserved.