|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisidia.simulation.evtack.Locker
public class Locker
The Locker class manages locks, and stores them in a hash table. A lock is an object associated to a unique id.
| Method Summary | |
|---|---|
java.lang.Long |
createLock()
Creates a lock, and puts it it the hash table. |
static Locker |
getInstance()
Gets the single instance of Locker. |
java.lang.Object |
getLock(java.lang.Long lockId)
Gets the lock. |
java.lang.Object |
removeLock(java.lang.Long lockId)
Removes the lock from the hash table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Locker getInstance()
public java.lang.Long createLock()
public java.lang.Object removeLock(java.lang.Long lockId)
lockId - the lock id
public java.lang.Object getLock(java.lang.Long lockId)
lockId - the lock id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||