Class NoLock

java.lang.Object
org.apache.camel.support.NoLock
All Implemented Interfaces:
Lock

public class NoLock extends Object implements Lock
Empty lock implementation
  • Field Details

    • INSTANCE

      public static final Lock INSTANCE
  • Constructor Details

    • NoLock

      public NoLock()
  • Method Details

    • lock

      public void lock()
      Specified by:
      lock 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
    • unlock

      public void unlock()
      Specified by:
      unlock in interface Lock
    • newCondition

      public Condition newCondition()
      Specified by:
      newCondition in interface Lock