|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cluster.coherence.TangosolClusteredLock
public class TangosolClusteredLock
Tangosol implementation of a ClusteredLock
Field Summary | |
---|---|
static long |
WAIT_UNTIL_ACQUIRED
|
Constructor Summary | |
---|---|
TangosolClusteredLock(com.tangosol.net.NamedCache cache,
java.lang.String key)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.io.Serializable |
getValue()
|
int |
hashCode()
|
void |
lock()
Acquire a lock - blocks until lock is successfully acquired |
void |
setValue(java.io.Serializable value)
Set the value of the key that is locked |
boolean |
tryLock()
Try to obtain a lock - returns immediately |
void |
unlock()
Unlock this lock |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long WAIT_UNTIL_ACQUIRED
Constructor Detail |
---|
public TangosolClusteredLock(com.tangosol.net.NamedCache cache, java.lang.String key)
Method Detail |
---|
public boolean tryLock()
Lock
tryLock
in interface Lock
public void lock()
Lock
lock
in interface Lock
public void unlock()
Lock
unlock
in interface Lock
public java.io.Serializable getValue()
getValue
in interface ClusteredLock
public void setValue(java.io.Serializable value)
ClusteredLock
setValue
in interface ClusteredLock
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |