com.thinkaurelius.titan.graphdb.transaction.lock

## Class ReentrantTransactionLock

- java.lang.Object
- - java.util.concurrent.locks.ReentrantLock
  - - com.thinkaurelius.titan.graphdb.transaction.lock.ReentrantTransactionLock

- All Implemented Interfaces:
    TransactionLock, Serializable, Lock

      public class ReentrantTransactionLock
      extends ReentrantLock
      implements TransactionLock

  Author:
    Matthias Broecheler (me@matthiasb.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReentrantTransactionLock()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `inUse()`
    `void` | `lock(Duration timeout)`

    - ### Methods inherited from class java.util.concurrent.locks.ReentrantLock

      `getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface com.thinkaurelius.titan.graphdb.transaction.lock.TransactionLock

      `unlock`

- - ### Constructor Detail

    - #### ReentrantTransactionLock

          public ReentrantTransactionLock()

  - ### Method Detail

    - #### lock

          public void lock(Duration timeout)

      Specified by:
        `lock` in interface `TransactionLock`

    - #### inUse

          public boolean inUse()

      Specified by:
        `inUse` in interface `TransactionLock`

Copyright © 2012–2014. All rights reserved.