|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
Lock |
readLock()
Return a read lock object. |
String |
toString()
|
Lock |
upgradeLockAttempt(long msecs)
Attempt to upgrade the current read lock to write lock with msecs timeout. |
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 Lock readLock()
LockStrategy
readLock in interface LockStrategyLockStrategy.readLock()
public Lock upgradeLockAttempt(long msecs)
throws UpgradeException
LockStrategymsecs timeout.
upgradeLockAttempt in interface LockStrategymsecs - Timeout in milliseconds.
UpgradeExceptionLockStrategy.upgradeLockAttempt(long)public Lock writeLock()
LockStrategy
writeLock in interface LockStrategyLockStrategy.writeLock()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||