|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.lock.LockStrategyRepeatableRead
public class LockStrategyRepeatableRead
Transaction isolation level of Repeatable_Read. It prevents dirty read and non-repeatable read.
Dirty read allows (t1) write and then (t2) read within two separate threads, all without transaction commit.
Non-repeatable allows read allows (t1) read, (t2) write, and then (t1) read, all without transaction commit.
Constructor Summary | |
---|---|
LockStrategyRepeatableRead()
|
Method Summary | |
---|---|
java.util.concurrent.locks.Lock |
readLock()
Return a read lock object. |
java.lang.String |
toString()
|
java.util.concurrent.locks.Lock |
upgradeLockAttempt(long msecs)
Attempt to upgrade the current read lock to write lock with msecs timeout. |
java.util.concurrent.locks.Lock |
writeLock()
Return a write lock object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LockStrategyRepeatableRead()
Method Detail |
---|
public java.util.concurrent.locks.Lock readLock()
LockStrategy
readLock
in interface LockStrategy
LockStrategy.readLock()
public java.util.concurrent.locks.Lock upgradeLockAttempt(long msecs) throws UpgradeException
LockStrategy
msecs
timeout.
upgradeLockAttempt
in interface LockStrategy
msecs
- Timeout in milliseconds.
UpgradeException
LockStrategy.upgradeLockAttempt(long)
public java.util.concurrent.locks.Lock writeLock()
LockStrategy
writeLock
in interface LockStrategy
LockStrategy.writeLock()
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 |