|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InterProcessLock
| Method Summary | |
|---|---|
void |
acquire()
Acquire the mutex - blocking until it's available. |
boolean |
acquire(long time,
TimeUnit unit)
Acquire the mutex - blocks until it's available or the given time expires. |
boolean |
isAcquiredInThisProcess()
Returns true if the mutex is acquired by a thread in this JVM |
void |
release()
Perform one release of the mutex. |
| Method Detail |
|---|
void acquire()
throws Exception
release()
Exception - ZK errors, connection interruptions
boolean acquire(long time,
TimeUnit unit)
throws Exception
release()
time - time to waitunit - time unit
Exception - ZK errors, connection interruptions
void release()
throws Exception
Exception - ZK errors, interruptions, current thread does not own the lockboolean isAcquiredInThisProcess()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||