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 |
ExecutorConfig
public ExecutorConfig()
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
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.