Class ResourcePool.Limit

  • Enclosing class:
    ResourcePool


    public static class ResourcePool.Limit
    extends Object
    The limit for each type of resource this pool manages.
    • Constructor Detail

      • Limit

        public Limit(int groupLimit,
                     int totalLimit,
                     double timeLimit)
        Parameters:
        groupLimit - the number of identical instances this pool stores.
        totalLimit - the total number of objects of a given type this stores.
        timeLimit - the number of seconds this stores a resource.