|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cache.tangosol.hibernate.CoherenceCacheStrategy.Lock
public static final class CoherenceCacheStrategy.Lock
A soft lock which supports concurrent locking, timestamped with the time it was released
| Constructor Summary | |
|---|---|
CoherenceCacheStrategy.Lock(long timeout,
int id,
Object version)
|
|
| Method Summary | |
|---|---|
int |
getId()
|
long |
getUnlockTimestamp()
|
boolean |
isGettable(long txTimestamp)
locks are not returned to the client! |
boolean |
isLock()
Yes, this is a lock |
boolean |
isPuttable(long txTimestamp,
Object newVersion,
Comparator comparator)
Can the timestamped transaction re-cache this locked item now? |
CoherenceCacheStrategy.Lock |
lock(long timeout,
int id)
Increment the lock, setting the new lock timeout |
String |
toString()
|
void |
unlock(long currentTimestamp)
Decrement the lock, setting the unlock timestamp if now unlocked |
boolean |
wasLockedConcurrently()
Was this lock held concurrently by multiple transactions? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoherenceCacheStrategy.Lock(long timeout,
int id,
Object version)
| Method Detail |
|---|
public long getUnlockTimestamp()
public CoherenceCacheStrategy.Lock lock(long timeout,
int id)
lock in interface CoherenceCacheStrategy.Lockablepublic void unlock(long currentTimestamp)
currentTimestamp -
public boolean isPuttable(long txTimestamp,
Object newVersion,
Comparator comparator)
isPuttable in interface CoherenceCacheStrategy.Lockablepublic boolean wasLockedConcurrently()
public boolean isLock()
isLock in interface CoherenceCacheStrategy.Lockablepublic boolean isGettable(long txTimestamp)
isGettable in interface CoherenceCacheStrategy.Lockablepublic int getId()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||