nl.knowledgeplaza.util.pool
Interface ObjectPool<T>
- All Known Subinterfaces:
- JdbcConnectionPool
- All Known Implementing Classes:
- BaseObjectPool, FastestFirstObjectPool, JdbcConnectionPoolWrapper, PriorityObjectPool, RoundRobinObjectPool, StackObjectPool
public interface ObjectPool<T>
This interface is compatible with the Apache Common Pool, so it can be a drop-in replacement.
- Version:
- $Revision: 1.3 $
borrowObject
T borrowObject()
returnObject
void returnObject(T arg0)
invalidateObject
void invalidateObject(T arg0)
addObject
void addObject()
getNumIdle
int getNumIdle()
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
getNumActive
int getNumActive()
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
clear
void clear()
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
close
void close()
setFactory
void setFactory(PoolableObjectFactory<T> arg0)
throws IllegalStateException,
UnsupportedOperationException
- Throws:
IllegalStateException
UnsupportedOperationException
shutdown
void shutdown()
setSynchronized
void setSynchronized(boolean value)
isSynchronized
boolean isSynchronized()
Copyright © 2011 KnowledgePlaza. All Rights Reserved.