Class Locks

java.lang.Object
org.antublue.test.engine.extras.Locks

public class Locks extends Object
Class to implement Locks
  • Method Details

    • getReference

      public static Locks.LockReference getReference(Object key)
      Method to get a LockReference
      Parameters:
      key - key
      Returns:
      a LockReference
    • execute

      @Deprecated public static Duration execute(Object key, Executable executable) throws Throwable
      Deprecated.
      Method to execute an Executable in a lock
      Parameters:
      key - key
      executable - executable
      Returns:
      the Duration
      Throws:
      Throwable - Throwable