|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.config.PoolingProfile
PoolingProfile
is a configuration object used to define the
object pooling parameters for the component it is associated with.
Field Summary | |
static int |
DEFAULT_MAX_POOL_ACTIVE
Controls the maximum number of Mule UMOs that can be borrowed from a component pool at one time. |
static int |
DEFAULT_MAX_POOL_IDLE
Controls the maximum number of Mule UMOs that can sit idle in the pool at any time. |
static long |
DEFAULT_MAX_POOL_WAIT
When the threadPoolExhaustedAction is setto 2 (WHEN_EXHAUSTED_BLOCK) this can specify the maximum milliseconds the pool should block before throwing a NoSuchElementException |
static int |
DEFAULT_POOL_EXHAUSTED_ACTION
Specifies the behaviour of the Mule UMO pool when the pool is exhausted: 0 (WHEN_EXHAUSTED_FAIL) : will throw a NoSuchElementException 1 (WHEN_EXHAUSTED_BLOCK): will block (invoke Object.wait(long) until a new or idle object is available. |
static byte |
DEFAULT_POOL_INITIALISATION_POLICY
Determines how components in a pool should be initialised. |
static byte |
POOL_INITIALISE_ALL_COMPONENTS
Tells the object pool not to initialise any components on startup |
static byte |
POOL_INITIALISE_NO_COMPONENTS
Tells the object pool not to initialise any components on startup |
static byte |
POOL_INITIALISE_ONE_COMPONENT
Tells the object pool only to initialise one component on startup |
Constructor Summary | |
PoolingProfile()
|
|
PoolingProfile(int maxActive,
int maxIdle,
long maxWait,
byte exhaustedAction,
byte initialisationPolicy)
|
|
PoolingProfile(PoolingProfile pp)
|
Method Summary | |
byte |
getExhaustedAction()
|
byte |
getInitialisationPolicy()
|
int |
getMaxActive()
|
int |
getMaxIdle()
|
long |
getMaxWait()
|
UMOPoolFactory |
getPoolFactory()
|
void |
setExhaustedAction(byte exhaustedAction)
|
void |
setExhaustedActionString(java.lang.String poolExhaustedAction)
|
void |
setInitialisationPolicy(byte policy)
|
void |
setInitialisationPolicyString(java.lang.String policy)
|
void |
setMaxActive(int maxActive)
|
void |
setMaxIdle(int maxIdle)
|
void |
setMaxWait(long maxWait)
|
void |
setPoolFactory(UMOPoolFactory poolFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte POOL_INITIALISE_NO_COMPONENTS
public static final byte POOL_INITIALISE_ONE_COMPONENT
public static final byte POOL_INITIALISE_ALL_COMPONENTS
public static final int DEFAULT_MAX_POOL_ACTIVE
public static final int DEFAULT_MAX_POOL_IDLE
public static final long DEFAULT_MAX_POOL_WAIT
public static final int DEFAULT_POOL_EXHAUSTED_ACTION
public static final byte DEFAULT_POOL_INITIALISATION_POLICY
Constructor Detail |
public PoolingProfile()
public PoolingProfile(PoolingProfile pp)
public PoolingProfile(int maxActive, int maxIdle, long maxWait, byte exhaustedAction, byte initialisationPolicy)
Method Detail |
public int getMaxIdle()
public int getMaxActive()
public long getMaxWait()
public byte getExhaustedAction()
public byte getInitialisationPolicy()
public void setInitialisationPolicy(byte policy)
public void setMaxIdle(int maxIdle)
public void setMaxActive(int maxActive)
public void setMaxWait(long maxWait)
public void setExhaustedAction(byte exhaustedAction)
public void setExhaustedActionString(java.lang.String poolExhaustedAction)
public void setInitialisationPolicyString(java.lang.String policy)
public UMOPoolFactory getPoolFactory()
public void setPoolFactory(UMOPoolFactory poolFactory)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |