|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Lockpublic void lock()
Lock
lock in interface Lockpublic void unlock()
Lock
unlock in interface Lockpublic java.io.Serializable getValue()
getValue in interface ClusteredLockpublic void setValue(java.io.Serializable value)
ClusteredLock
setValue in interface ClusteredLockpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||