|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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,
java.lang.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,
java.lang.Object newVersion,
java.util.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 |
java.lang.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, java.lang.Object version)
Method Detail |
---|
public long getUnlockTimestamp()
public CoherenceCacheStrategy.Lock lock(long timeout, int id)
lock
in interface CoherenceCacheStrategy.Lockable
public void unlock(long currentTimestamp)
currentTimestamp
- public boolean isPuttable(long txTimestamp, java.lang.Object newVersion, java.util.Comparator comparator)
isPuttable
in interface CoherenceCacheStrategy.Lockable
public boolean wasLockedConcurrently()
public boolean isLock()
isLock
in interface CoherenceCacheStrategy.Lockable
public boolean isGettable(long txTimestamp)
isGettable
in interface CoherenceCacheStrategy.Lockable
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |