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