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.apache.myfaces.orchestra.lib
Class _ReentrantLock

    java.lang.Object
      org.apache.myfaces.orchestra.lib._ReentrantLock

All Implemented Interfaces:
  Serializable

    public class _ReentrantLock

extends Object
implements Serializable

A reentrant mutual exclusion with the same basic behavior and semantics as the implicit monitor lock accessed using `synchronized` methods and statements.

Serialization of this class behaves in the same way as built-in locks: a deserialized lock is in the unlocked state, regardless of its state when serialized.

This class exists just for the purposes of Java 1.4 compatibility; it is equivalent to the Java 1.5 ReentrantLock class. It probably doesn't perform as well as the "real" lock class, but Orchestra doesn't use it in any critical paths.

Since:
  1.1
See Also:
  Serialized Form

Constructor Summary
`_ReentrantLock()`

Method Summary
`boolean` | `isHeldByCurrentThread()`
`void` | `lockInterruptibly()`
`void` | `unlock()`

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

Constructor Detail

### _ReentrantLock

    public _ReentrantLock()

Method Detail

### lockInterruptibly

    public void lockInterruptibly()
                           throws InterruptedException

  Throws:
    `InterruptedException`

### unlock

    public void unlock()

### isHeldByCurrentThread

    public boolean isHeldByCurrentThread()

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 © 2012 The Apache Software Foundation. All Rights Reserved.