Package org.smallmind.quorum.pool.simple
Class ComponentPool<T extends PooledComponent>
java.lang.Object
org.smallmind.quorum.pool.Pool
org.smallmind.quorum.pool.simple.ComponentPool<T>
-
Constructor Summary
ConstructorsConstructorDescriptionComponentPool(ComponentFactory<T> componentFactory) ComponentPool(ComponentFactory<T> componentFactory, SimplePoolConfig simplePoolConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intfreeSize()intpoolSize()voidreturnComponent(T component)
-
Constructor Details
-
ComponentPool
-
ComponentPool
-
-
Method Details
-
getComponent
- Throws:
ComponentPoolException
-
returnComponent
-
poolSize
public int poolSize() -
freeSize
public int freeSize() -
close
- Throws:
InterruptedException
-