Class LockUtil

java.lang.Object
org.neo4j.driver.internal.util.LockUtil

public class LockUtil extends Object
  • Constructor Details

    • LockUtil

      public LockUtil()
  • Method Details

    • executeWithLock

      public static void executeWithLock(Lock lock, Runnable runnable)
    • executeWithLock

      public static <T> T executeWithLock(Lock lock, Supplier<T> supplier)
    • executeWithLockAsync

      public static <T> void executeWithLockAsync(Lock lock, Supplier<CompletionStage<T>> stageSupplier)