All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fireflysource.common.pool.PoolFactory Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy