
nf.fr.eraasoft.pool.ObjectPool Maven / Gradle / Ivy
The newest version!
package nf.fr.eraasoft.pool;
public interface ObjectPool {
/**
* {@literal
PoolSettings poolSettings = ....;
MyType myType = poolSettings.pool().getObj();
}
*
* @return an instance of T object
* @throws InterruptedException
*/
public T getObj() throws PoolException;
/**
* Return object to the pool
* @param object
*/
public void returnObj(T object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy