Class SyncClass
- java.lang.Object
-
- es.bsc.dataclay.util.classloaders.SyncClass
-
public final class SyncClass extends Object
Locker of class.
-
-
Constructor Summary
Constructors Constructor Description SyncClass(MetaClassID newMetaClassID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaClassID
getMetaClassID()
Get class id of lockerint
getNumThreadsWaiting()
Get number of threads waiting.void
lock()
Lock class.void
unlock()
Unlock class.
-
-
-
Constructor Detail
-
SyncClass
public SyncClass(MetaClassID newMetaClassID)
Constructor- Parameters:
newMetaClassID
- ID of the class locker.
-
-
Method Detail
-
lock
public void lock()
Lock class.
-
getNumThreadsWaiting
public int getNumThreadsWaiting()
Get number of threads waiting.- Returns:
- number of threads waiting
-
unlock
public void unlock()
Unlock class.
-
getMetaClassID
public MetaClassID getMetaClassID()
Get class id of locker- Returns:
- ID of the class
-
-