Class Engine.NoOpLock

org.elasticsearch.index.engine.Engine.NoOpLock
All Implemented Interfaces:
Enclosing class:
Engine

protected static final class Engine.NoOpLock extends implements
A Lock implementation that always allows the lock to be acquired
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
     
    boolean
     
    boolean
    tryLock​(long time,  unit)
     
    void
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • NoOpLock

      protected NoOpLock()
  • Method Details

    • lock

      public void lock()
      Specified by:
       in interface 
    • lockInterruptibly

      public void lockInterruptibly() throws
      Specified by:
       in interface 
      Throws:
    • tryLock

      public boolean tryLock()
      Specified by:
       in interface 
    • tryLock

      public boolean tryLock(long time,  unit) throws
      Specified by:
       in interface 
      Throws:
    • unlock

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

      public  newCondition()
      Specified by:
       in interface