Class ClusterNodeStoreLock

  • All Implemented Interfaces:
    AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.ClusteredLockToken>

    public class ClusterNodeStoreLock
    extends java.lang.Object
    implements AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.ClusteredLockToken>
    Lock implementation for clustered scenario. The locking is done by setting the lease time for the lane to distant future which prevent AsyncIndexUpdate from running.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isLocked​(java.lang.String asyncIndexerLane)  
      org.apache.jackrabbit.oak.plugins.index.importer.ClusteredLockToken lock​(java.lang.String asyncIndexerLane)  
      void unlock​(org.apache.jackrabbit.oak.plugins.index.importer.ClusteredLockToken token)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClusterNodeStoreLock

        public ClusterNodeStoreLock​(NodeStore nodeStore)
      • ClusterNodeStoreLock

        public ClusterNodeStoreLock​(NodeStore nodeStore,
                                    Clock clock)
    • Method Detail

      • isLocked

        public boolean isLocked​(java.lang.String asyncIndexerLane)