Class ClassLockers
- java.lang.Object
-
- es.bsc.dataclay.util.classloaders.ClassLockers
-
public final class ClassLockers extends Object
Class lockers.
-
-
Constructor Summary
Constructors Constructor Description ClassLockers()
Class lockers constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear all lockers.SyncClass
getLocker(MetaClassID classID)
Get locker for class with ID provided.int
numLockers()
Get number of lockers.void
tryRemoveLocker(SyncClass locker)
Try to remove locker provided if no other thread is waiting
-
-
-
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.
-
-