Class LockerPool


  • public final class LockerPool
    extends Object
    Objects lockers class.
    • Constructor Detail

      • LockerPool

        public LockerPool()
        Lockers constructor.
    • Method Detail

      • lock

        public void lock​(ObjectID objectID)
        Lock the object with id provider
        Parameters:
        objectID - ID of the object to lock
      • unlock

        public void unlock​(ObjectID objectID)
        Unlock the object with id provider
        Parameters:
        objectID - ID of the object to lock
      • cleanLockers

        public void cleanLockers()
        Clean lockers.
      • numLockers

        public int numLockers()
        Get number of lockers.
        Returns:
        Number of lockers