Class Delay

java.lang.Object
com.persequor.extension.Delay

public class Delay extends Object
  • Method Details

    • Fluke

      public static Delay Fluke()
      Use this configuration if something fails, but you expect it to work right away after
      Returns:
      the delay
    • DataMissingTemporarily

      public static Delay DataMissingTemporarily()
      Use this configuration if you are waiting on data to come into the system
      Returns:
      the delay
    • Eagerly

      public static Delay Eagerly()
      Use this configuration if retrying is not that expensive for this process, and you can try again quickly a lot of times
      Returns:
      the delay
    • Patiently

      public static Delay Patiently()
      Use this configuration if you don't expect immediate resolution, and primary expect to use the wakeup keys to retry.
      Returns:
      the delay
    • get

      public static Delay get(String configurationName)
    • getConfigurationName

      public String getConfigurationName()
    • addWakeupKeys

      public Delay addWakeupKeys(String... wakeupKeys)
    • getWakeupKeys

      public Set<String> getWakeupKeys()