| |
|
| java.lang.Object org.mule.config.PoolingProfile
PoolingProfile | public class PoolingProfile (Code) | | PoolingProfile is a configuration object used to define the object
pooling parameters for the service it is associated with.
|
Field Summary | |
final public static int | DEFAULT_MAX_POOL_ACTIVE Controls the maximum number of Mule UMOs that can be borrowed from a service
pool at one time. | final public static int | DEFAULT_MAX_POOL_IDLE Controls the maximum number of Mule UMOs that can sit idle in the pool at any
time. | final public static long | DEFAULT_MAX_POOL_WAIT | final public static int | DEFAULT_POOL_EXHAUSTED_ACTION Specifies the behaviour of the Mule UMO pool when the pool is exhausted:
- WHEN_EXHAUSTED_FAIL : will throw a NoSuchElementException
- WHEN_EXHAUSTED_WAIT : will block (invoke Object.wait(long) until a new or
idle object is available.
- WHEN_EXHAUSTED_GROW : will create a new Mule and return it (essentially
making maxActive meaningless).
If a positive maxWait value is supplied, it will block for at most that many
milliseconds, after which a NoSuchElementException will be thrown. | final public static int | DEFAULT_POOL_INITIALISATION_POLICY Determines how components in a pool should be initialised. | final public static int | INITIALISE_ALL Tells the object pool to initialise all components on startup. | final public static int | INITIALISE_NONE Tells the object pool not to initialise any components on startup. | final public static int | INITIALISE_ONE Tells the object pool only to initialise one service on startup. | final public static Map | POOL_EXHAUSTED_ACTIONS | final public static Map | POOL_INITIALISATION_POLICIES | final public static int | WHEN_EXHAUSTED_BLOCK | final public static int | WHEN_EXHAUSTED_FAIL | final public static int | WHEN_EXHAUSTED_GROW | final public static int | WHEN_EXHAUSTED_WAIT |
DEFAULT_MAX_POOL_ACTIVE | final public static int DEFAULT_MAX_POOL_ACTIVE(Code) | | Controls the maximum number of Mule UMOs that can be borrowed from a service
pool at one time. When non-positive, there is no limit to the number of
components that may be active at one time. When maxActive is exceeded, the
pool is said to be exhausted. You can specify this value on the descriptor
declaration. If none is set this value will be used.
|
DEFAULT_MAX_POOL_IDLE | final public static int DEFAULT_MAX_POOL_IDLE(Code) | | Controls the maximum number of Mule UMOs that can sit idle in the pool at any
time. When non-positive, there is no limit to the number of Mule UMOs that may
be idle at one time. You can specify this value on the descriptor declaration.
If none is set this value will be used. If this value is not set then a system
default of '5' will be used.
|
DEFAULT_MAX_POOL_WAIT | final public static long DEFAULT_MAX_POOL_WAIT(Code) | | When the threadPoolExhaustedAction is set to WHEN_EXHAUSTED_WAIT this can
specify the maximum milliseconds the pool should block before throwing a
NoSuchElementException
|
DEFAULT_POOL_EXHAUSTED_ACTION | final public static int DEFAULT_POOL_EXHAUSTED_ACTION(Code) | | Specifies the behaviour of the Mule UMO pool when the pool is exhausted:
- WHEN_EXHAUSTED_FAIL : will throw a NoSuchElementException
- WHEN_EXHAUSTED_WAIT : will block (invoke Object.wait(long) until a new or
idle object is available.
- WHEN_EXHAUSTED_GROW : will create a new Mule and return it (essentially
making maxActive meaningless).
If a positive maxWait value is supplied, it will block for at most that many
milliseconds, after which a NoSuchElementException will be thrown. If maxWait
is non-positive, it will block indefinitely.
|
DEFAULT_POOL_INITIALISATION_POLICY | final public static int DEFAULT_POOL_INITIALISATION_POLICY(Code) | | Determines how components in a pool should be initialised. The possible values
are:
- INITIALISE_NONE : Will not load any components in the pool on startup
- INITIALISE_ONE : Will load only the first service in the pool on
startup
- INITIALISE_ALL : Will load all components in the pool on startup
|
INITIALISE_ALL | final public static int INITIALISE_ALL(Code) | | Tells the object pool to initialise all components on startup.
|
INITIALISE_NONE | final public static int INITIALISE_NONE(Code) | | Tells the object pool not to initialise any components on startup.
|
INITIALISE_ONE | final public static int INITIALISE_ONE(Code) | | Tells the object pool only to initialise one service on startup.
|
POOL_EXHAUSTED_ACTIONS | final public static Map POOL_EXHAUSTED_ACTIONS(Code) | | |
POOL_INITIALISATION_POLICIES | final public static Map POOL_INITIALISATION_POLICIES(Code) | | |
WHEN_EXHAUSTED_BLOCK | final public static int WHEN_EXHAUSTED_BLOCK(Code) | | |
WHEN_EXHAUSTED_FAIL | final public static int WHEN_EXHAUSTED_FAIL(Code) | | |
WHEN_EXHAUSTED_GROW | final public static int WHEN_EXHAUSTED_GROW(Code) | | |
WHEN_EXHAUSTED_WAIT | final public static int WHEN_EXHAUSTED_WAIT(Code) | | |
PoolingProfile | public PoolingProfile()(Code) | | |
PoolingProfile | public PoolingProfile(int maxActive, int maxIdle, long maxWait, int exhaustedAction, int initialisationPolicy)(Code) | | |
getExhaustedAction | public int getExhaustedAction()(Code) | | the action when the Mule UMO pool is exhaused for a service |
getInitialisationPolicy | public int getInitialisationPolicy()(Code) | | |
getMaxActive | public int getMaxActive()(Code) | | max number of Mule UMOs that can be active in a service |
getMaxIdle | public int getMaxIdle()(Code) | | max number of Mule UMOs that can be idle in a service |
getMaxWait | public long getMaxWait()(Code) | | time in miilisconds to wait for a Mule UMO to be available in aservice when the pool of Mule UMOs is exhausted and thePoolExhaustedAction is set to WHEN_EXHAUSTED_BLOCK |
setExhaustedAction | public void setExhaustedAction(int exhaustedAction)(Code) | | |
setInitialisationPolicy | public void setInitialisationPolicy(int policy)(Code) | | |
setMaxActive | public void setMaxActive(int maxActive)(Code) | | |
setMaxIdle | public void setMaxIdle(int maxIdle)(Code) | | |
setMaxWait | public void setMaxWait(long maxWait)(Code) | | |
|
|
|