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

org.holoeverywhere.util.Pools Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version

package org.holoeverywhere.util;

public class Pools {
    public static > Pool finitePool(
            PoolableManager manager, int limit) {
        return new FinitePool(manager, limit);
    }

    public static > Pool simplePool(
            PoolableManager manager) {
        return new FinitePool(manager);
    }

    public static > Pool synchronizedPool(Pool pool) {
        return new SynchronizedPool(pool);
    }

    public static > Pool synchronizedPool(
            Pool pool, Object lock) {
        return new SynchronizedPool(pool, lock);
    }

    private Pools() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy