Class MutexFactory

java.lang.Object
org.tasktide.mutex.model.MutexFactory

public class MutexFactory extends Object
Class for creating Mutex, assuming MutexConstants have been configured
  • Constructor Details

    • MutexFactory

      public MutexFactory()
  • Method Details

    • create

      public static Mutex create(Path hostFile)
      Build with host file path override
      Parameters:
      hostFile -
      Returns:
      Mutex
    • create

      public static Mutex create()
      Build with new lock entry generated internally
      Returns:
      Mutex
    • create

      public static Mutex create(long timestamp)
      Build with new lock entry generated internally
      Parameters:
      timestamp -
      Returns:
      Mutex