Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.cache.lock
Class SimpleLock

    java.lang.Object
      org.jboss.cache.lock.SimpleLock

    public class SimpleLock

extends java.lang.Object

Simple lock that does not differentiate read and write lock. All locks are obtained FIFO. Just implements from Doug Lea's concurrent package. This class is used as a delegate for LockStrategy is transaction isolation level.

Version:
  $Revision: 1.2 $
Author:
  Ben Wang July 15, 2003

Constructor Summary
`SimpleLock()`

Method Summary
`EDU.oswego.cs.dl.util.concurrent.Sync` | `readLock()`
`EDU.oswego.cs.dl.util.concurrent.Sync` | `upgradeLockAttempt(long msecs)`
`EDU.oswego.cs.dl.util.concurrent.Sync` | `writeLock()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimpleLock

    public SimpleLock()

Method Detail

### readLock

    public EDU.oswego.cs.dl.util.concurrent.Sync readLock()

  See Also:
    `LockStrategy.readLock()`

### upgradeLockAttempt

    public EDU.oswego.cs.dl.util.concurrent.Sync upgradeLockAttempt(long msecs)

  See Also:
    `LockStrategy.upgradeLockAttempt(long)`

### writeLock

    public EDU.oswego.cs.dl.util.concurrent.Sync writeLock()

  See Also:
    `LockStrategy.writeLock()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1998-2005 JBoss Inc . All Rights Reserved.