org.smallmind.quorum.pool.component
Class ComponentPool<T>
java.lang.Object
org.smallmind.quorum.pool.component.ComponentPool<T>
public class ComponentPool<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentPool
public ComponentPool(ComponentFactory<T> componentFactory,
int size,
long acquireWaitTimeMillis)
getComponent
public T getComponent()
throws ComponentPoolException
- Throws:
ComponentPoolException
returnComponent
public void returnComponent(T component)
poolSize
public int poolSize()
freeSize
public int freeSize()
Copyright © 2011. All Rights Reserved.