public interface LockState
| Modifier and Type | Method and Description |
|---|---|
void |
init(StateContext<LockState> context)
Initializes the lock state.
|
boolean |
lock(String member,
long thread)
Locks the lock.
|
void |
unlock(String member,
long thread)
Unlocks the lock.
|
void init(StateContext<LockState> context)
boolean lock(String member, long thread)
member - The member that is unlocking the lock.thread - The thread that is unlocking the lock.void unlock(String member, long thread)
member - The member that is unlocking the lock.thread - The thread that is unlocking the lock.Copyright © 2013-2015. All Rights Reserved.