public class ComponentPool<T extends PooledComponent> extends Object
| Constructor and Description |
|---|
ComponentPool(ComponentFactory<T> componentFactory) |
ComponentPool(ComponentFactory<T> componentFactory,
SimplePoolConfig simplePoolConfig) |
public ComponentPool(ComponentFactory<T> componentFactory)
public ComponentPool(ComponentFactory<T> componentFactory, SimplePoolConfig simplePoolConfig)
public T getComponent() throws ComponentPoolException
ComponentPoolExceptionpublic void returnComponent(T component)
public int poolSize()
public int freeSize()
public void close()
throws InterruptedException
InterruptedExceptionCopyright © 2016. All rights reserved.