|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.config.ThreadingProfile
ThreadingProfile
is used to configure a thread pool. Mule uses a
few different pools i.e. for component threads and message dispatchers. This object
makes it easier to configure the pool.
Nested Class Summary | |
static interface |
ThreadingProfile.WorkManagerFactory
|
Field Summary | |
static boolean |
DEFAULT_DO_THREADING
Default value for do threading |
static int |
DEFAULT_MAX_BUFFER_SIZE
Default value for MAX_BUFFER_SIZE |
static long |
DEFAULT_MAX_THREAD_TTL
Default value for MAX_THREAD_TTL |
static int |
DEFAULT_MAX_THREADS_ACTIVE
Default value for MAX_THREADS_ACTIVE |
static int |
DEFAULT_MAX_THREADS_IDLE
Default value for MAX_THREADS_IDLE |
static int |
DEFAULT_POOL_EXHAUST_ACTION
Default action to perform on pool exhaustion |
static long |
DEFAULT_THREAD_WAIT_TIMEOUT
Default value for DEFAULT_THREAD_WAIT_TIMEOUT |
static int |
WHEN_EXHAUSTED_ABORT
|
static int |
WHEN_EXHAUSTED_DISCARD
|
static int |
WHEN_EXHAUSTED_DISCARD_OLDEST
|
static int |
WHEN_EXHAUSTED_RUN
|
static int |
WHEN_EXHAUSTED_WAIT
Actions to perform on pool exhaustion |
Constructor Summary | |
ThreadingProfile()
|
|
ThreadingProfile(int maxThreadsActive,
int maxThreadsIdle,
long threadTTL,
int poolExhaustPolicy,
RejectedExecutionHandler rejectedExecutionHandler,
ThreadFactory threadFactory)
|
|
ThreadingProfile(ThreadingProfile tp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_MAX_THREADS_ACTIVE
public static final int DEFAULT_MAX_THREADS_IDLE
public static final int DEFAULT_MAX_BUFFER_SIZE
public static final long DEFAULT_MAX_THREAD_TTL
public static final long DEFAULT_THREAD_WAIT_TIMEOUT
public static final boolean DEFAULT_DO_THREADING
public static final int WHEN_EXHAUSTED_WAIT
public static final int WHEN_EXHAUSTED_DISCARD
public static final int WHEN_EXHAUSTED_DISCARD_OLDEST
public static final int WHEN_EXHAUSTED_ABORT
public static final int WHEN_EXHAUSTED_RUN
public static final int DEFAULT_POOL_EXHAUST_ACTION
Constructor Detail |
public ThreadingProfile()
public ThreadingProfile(int maxThreadsActive, int maxThreadsIdle, long threadTTL, int poolExhaustPolicy, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory)
public ThreadingProfile(ThreadingProfile tp)
Method Detail |
public int getMaxThreadsActive()
public int getMaxThreadsIdle()
public long getThreadTTL()
public long getThreadWaitTimeout()
public int getPoolExhaustedAction()
public RejectedExecutionHandler getRejectedExecutionHandler()
public ThreadFactory getThreadFactory()
public void setMaxThreadsActive(int maxThreadsActive)
public void setMaxThreadsIdle(int maxThreadsIdle)
public void setThreadTTL(long threadTTL)
public void setThreadWaitTimeout(long threadWaitTimeout)
public void setPoolExhaustedAction(int poolExhaustPolicy)
public void setPoolExhaustedActionString(String poolExhaustPolicy)
public void setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
public void setThreadFactory(ThreadFactory threadFactory)
public int getMaxBufferSize()
public void setMaxBufferSize(int maxBufferSize)
public ThreadingProfile.WorkManagerFactory getWorkManagerFactory()
public void setWorkManagerFactory(ThreadingProfile.WorkManagerFactory workManagerFactory)
public UMOWorkManager createWorkManager(String name)
public ThreadPoolExecutor createPool()
public ThreadPoolExecutor createPool(String name)
public boolean isDoThreading()
public void setDoThreading(boolean doThreading)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |