com.fireflysource.common.pool.PoolFactory Maven / Gradle / Ivy
package com.fireflysource.common.pool;
import com.fireflysource.common.func.Callback;
/**
* @author Pengtao Qiu
*/
abstract public class PoolFactory {
public static Pool newPool(int maxSize, long timeout,
Pool.ObjectFactory objectFactory, Pool.Validator validator, Pool.Dispose dispose,
long leakDetectorInterval, long releaseTimeout, Callback noLeakCallback) {
return new AsyncBoundObjectPool<>(maxSize, timeout,
objectFactory, validator, dispose,
leakDetectorInterval, releaseTimeout, noLeakCallback);
}
}