Class ClassLockers


  • public final class ClassLockers
    extends Object
    Class lockers.
    • Constructor Detail

      • ClassLockers

        public ClassLockers()
        Class lockers constructor.
    • Method Detail

      • getLocker

        public SyncClass getLocker​(MetaClassID classID)
        Get locker for class with ID provided.
        Parameters:
        classID - ID of the class locker to get.
        Returns:
        Locker of the class provided.
      • numLockers

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

        public void tryRemoveLocker​(SyncClass locker)
        Try to remove locker provided if no other thread is waiting
        Parameters:
        locker - Locker to remove.
      • clear

        public void clear()
        Clear all lockers.