org.modeshape.common.collection.ring

## Class RingBuffer.NoOpLock

- java.lang.Object
- - org.modeshape.common.collection.ring.RingBuffer.NoOpLock

- All Implemented Interfaces:
    Lock
  Enclosing class:
    RingBuffer<T,C>

      protected static final class RingBuffer.NoOpLock
      extends Object
      implements Lock

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `RingBuffer.NoOpLock()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `lock()`
    `void` | `lockInterruptibly()`
    `Condition` | `newCondition()`
    `boolean` | `tryLock()`
    `boolean` | `tryLock(long time, TimeUnit unit)`
    `void` | `unlock()`

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

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

- - ### Constructor Detail

    - #### RingBuffer.NoOpLock

          protected RingBuffer.NoOpLock()

  - ### Method Detail

    - #### lock

          public void lock()

      Specified by:
        `lock` in interface `Lock`

    - #### unlock

          public void unlock()

      Specified by:
        `unlock` in interface `Lock`

    - #### lockInterruptibly

          public void lockInterruptibly()

      Specified by:
        `lockInterruptibly` in interface `Lock`

    - #### tryLock

          public boolean tryLock()

      Specified by:
        `tryLock` in interface `Lock`

    - #### tryLock

          public boolean tryLock(long time,
                        TimeUnit unit)

      Specified by:
        `tryLock` in interface `Lock`

    - #### newCondition

          public Condition newCondition()

      Specified by:
        `newCondition` in interface `Lock`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.