|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.config.ChainedThreadingProfile
public class ChainedThreadingProfile
This was written (perhaps too far in advance) with an eye to how we will manage default values
in a dynamic environment. Since very little has been decided in that direction the correct
behaviour is unclear - changing the default value of "dynamic"
ChainedThreadingProfile(ThreadingProfile)
will switch behaviour between dynamic and static chaining.
Note that within Spring, as far as I understand things, object creation is always ordered so that dependencies are correctly resolved. In that case, in a static scenario (or in a dynamic one that rebuilds the instances) dynamic and static behaviour should be identical.
Also, the "lazy" chaining is an optimisation - all hierarchies should be grounded in a final
default which is ImmutableThreadingProfile and, as such, return reliable
values (lazy would be necessary if this is not the case, since we must avoid evaluating
incomplete delegates).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.mule.api.config.ThreadingProfile |
|---|
ThreadingProfile.WorkManagerFactory |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ChainedThreadingProfile()
Generate a mutable threading profile with fixed default values taken from ThreadingProfile.DEFAULT_THREADING_PROFILE |
|
ChainedThreadingProfile(ThreadingProfile delegate)
Generate a mutable threading profile with dynamic default values taken from the given delegate. |
|
ChainedThreadingProfile(ThreadingProfile delegate,
boolean dynamic)
Generate a mutable threading profile. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedThreadingProfile()
ThreadingProfile.DEFAULT_THREADING_PROFILE
public ChainedThreadingProfile(ThreadingProfile delegate)
public ChainedThreadingProfile(ThreadingProfile delegate,
boolean dynamic)
delegate - Source of default values.dynamic - If true, changes in delegate are reflected in this instance| Method Detail |
|---|
public int getMaxThreadsActive()
getMaxThreadsActive in interface ThreadingProfilepublic int getMaxThreadsIdle()
getMaxThreadsIdle in interface ThreadingProfilepublic long getThreadTTL()
getThreadTTL in interface ThreadingProfilepublic long getThreadWaitTimeout()
getThreadWaitTimeout in interface ThreadingProfilepublic int getPoolExhaustedAction()
getPoolExhaustedAction in interface ThreadingProfilepublic RejectedExecutionHandler getRejectedExecutionHandler()
getRejectedExecutionHandler in interface ThreadingProfilepublic ThreadFactory getThreadFactory()
getThreadFactory in interface ThreadingProfilepublic void setMaxThreadsActive(int maxThreadsActive)
setMaxThreadsActive in interface ThreadingProfilepublic void setMaxThreadsIdle(int maxThreadsIdle)
setMaxThreadsIdle in interface ThreadingProfilepublic void setThreadTTL(long threadTTL)
setThreadTTL in interface ThreadingProfilepublic void setThreadWaitTimeout(long threadWaitTimeout)
setThreadWaitTimeout in interface ThreadingProfilepublic void setPoolExhaustedAction(int poolExhaustPolicy)
setPoolExhaustedAction in interface ThreadingProfilepublic void setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
setRejectedExecutionHandler in interface ThreadingProfilepublic void setThreadFactory(ThreadFactory threadFactory)
setThreadFactory in interface ThreadingProfilepublic int getMaxBufferSize()
getMaxBufferSize in interface ThreadingProfilepublic void setMaxBufferSize(int maxBufferSize)
setMaxBufferSize in interface ThreadingProfilepublic ThreadingProfile.WorkManagerFactory getWorkManagerFactory()
getWorkManagerFactory in interface ThreadingProfilepublic void setWorkManagerFactory(ThreadingProfile.WorkManagerFactory workManagerFactory)
setWorkManagerFactory in interface ThreadingProfile
public WorkManager createWorkManager(String name,
int shutdownTimeout)
createWorkManager in interface ThreadingProfilepublic ExecutorService createPool()
createPool in interface ThreadingProfilepublic ExecutorService createPool(String name)
createPool in interface ThreadingProfilepublic boolean isDoThreading()
isDoThreading in interface ThreadingProfilepublic void setDoThreading(boolean doThreading)
setDoThreading in interface ThreadingProfilepublic ThreadPoolFactory getPoolFactory()
getPoolFactory in interface ThreadingProfilepublic ScheduledExecutorService createScheduledPool(String name)
createScheduledPool in interface ThreadingProfilepublic MuleContext getMuleContext()
getMuleContext in interface ThreadingProfilepublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||