Package es.bsc.dataclay.heap
Class LockerPool
- java.lang.Object
-
- es.bsc.dataclay.heap.LockerPool
-
public final class LockerPool extends Object
Objects lockers class.
-
-
Constructor Summary
Constructors Constructor Description LockerPool()
Lockers constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanLockers()
Clean lockers.void
lock(ObjectID objectID)
Lock the object with id providerint
numLockers()
Get number of lockers.void
unlock(ObjectID objectID)
Unlock the object with id provider
-
-
-
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
-
-