|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITimeKeyManager
Method Summary | |
---|---|
Set<Long> |
getHeldKeys()
Returns an immutable collection of currently held timeKeys. |
String |
getHeldKeysStr()
Returns an immutable collection of currently held timeKeys as string. |
boolean |
isLocked(long time)
True if the provided timeKey is explicitly locked (lock(key) was called). |
boolean |
isLocked(TimeKey key)
True if the provided timeKey is explicitly locked (lock(key) was called). |
void |
lock(long time)
Locks some "time" (or increment lock number if existing lock exists). |
void |
unlock(long key)
Unlocks some "time". |
void |
unlockAll()
Unlock all times. |
void |
unlockAll(long time)
Completely unlocks one time (regardless number of locks held). |
Method Detail |
---|
void lock(long time)
time
- boolean isLocked(TimeKey key)
key
-
boolean isLocked(long time)
time
-
void unlock(long key) throws TimeKeyNotLockedException
key
-
TimeKeyNotLockedException
void unlockAll(long time) throws TimeKeyNotLockedException
time
-
TimeKeyNotLockedException
void unlockAll()
Set<Long> getHeldKeys()
String getHeldKeysStr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |