org.mule.util
Interface ObjectPool
- All Known Implementing Classes:
- CommonsPoolProxyPool
public interface ObjectPool
ObjectPool
is a simple pooling interface for objects
WHEN_EXHAUSTED_FAIL
static final int WHEN_EXHAUSTED_FAIL
- Constants used to determine the exhausted action of the pool
- See Also:
- Constant Field Values
WHEN_EXHAUSTED_BLOCK
static final int WHEN_EXHAUSTED_BLOCK
- Deprecated. use WHEN_EXHAUSTED_WAIT instead
- See Also:
- Constant Field Values
WHEN_EXHAUSTED_WAIT
static final int WHEN_EXHAUSTED_WAIT
- See Also:
- Constant Field Values
WHEN_EXHAUSTED_GROW
static final int WHEN_EXHAUSTED_GROW
- See Also:
- Constant Field Values
DEFAULT_EXHAUSTED_ACTION
static final int DEFAULT_EXHAUSTED_ACTION
- See Also:
- Constant Field Values
DEFAULT_MAX_SIZE
static final int DEFAULT_MAX_SIZE
- See Also:
- Constant Field Values
DEFAULT_MAX_WAIT
static final int DEFAULT_MAX_WAIT
- See Also:
- Constant Field Values
borrowObject
Object borrowObject()
throws Exception
- Throws:
Exception
returnObject
void returnObject(Object object)
throws Exception
- Throws:
Exception
getSize
int getSize()
getMaxSize
int getMaxSize()
setFactory
void setFactory(ObjectFactory factory)
clearPool
void clearPool()
start
void start()
throws Exception
- Throws:
Exception
stop
void stop()
throws Exception
- Throws:
Exception
onAdd
void onAdd(Object obj)
onRemove
void onRemove(Object obj)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.