| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.cache.lock.LockStrategySerializable
Lock strategy of Serializable that prevents dirty read, non-repeatable read, and phantom read.
Dirty read allows (t1) write and then (t2) read within two separate threads, all without transaction commit.
Non-repeatable read allows (t1) read, (t2) write, and then (t1) read, all without transaction commit.
Phantom read allows (t1) read n rows, (t2) insert k rows, and (t1) read n+k rows.
| Constructor Summary | |
| LockStrategySerializable() | |
| Method Summary | |
|  EDU.oswego.cs.dl.util.concurrent.Sync | readLock()Return a read lock object. | 
|  EDU.oswego.cs.dl.util.concurrent.Sync | upgradeLockAttempt(long msecs)Attempt to upgrade the current read lock to write lock with msecstimeout. | 
|  EDU.oswego.cs.dl.util.concurrent.Sync | writeLock()Return a write lock object. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public LockStrategySerializable()
| Method Detail | 
public EDU.oswego.cs.dl.util.concurrent.Sync readLock()
LockStrategy
readLock in interface LockStrategyLockStrategy.readLock()
public EDU.oswego.cs.dl.util.concurrent.Sync upgradeLockAttempt(long msecs)
                                                         throws UpgradeException
LockStrategymsecs timeout.
upgradeLockAttempt in interface LockStrategymsecs - Timeout in milliseconds.
UpgradeExceptionLockStrategy.upgradeLockAttempt(long)public EDU.oswego.cs.dl.util.concurrent.Sync writeLock()
LockStrategy
writeLock in interface LockStrategyLockStrategy.writeLock()| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||