Class FixedDelay

  • All Implemented Interfaces:
    DelayStrategy

    @Deprecated(since="2022-01-27")
    public class FixedDelay
    extends java.lang.Object
    implements DelayStrategy
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    A default DelayStrategy that implements a simple fixed delay.
    Since:
    1.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedDelay​(int delay)
      Deprecated.
      Initialize a new FixedDelay with fixed delay value given by delay parameter.
      FixedDelay​(long initialDelay, long subsequentDelay)
      Deprecated.
      Initialize a new FixedDelay with a given initialDelay and subsequentDelay.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long nextDelay()
      Deprecated.
      The value computed by this DelayStrategy for the next delay.
      • Methods inherited from class java.lang.Object

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

      • FixedDelay

        public FixedDelay​(long initialDelay,
                          long subsequentDelay)
        Deprecated.
        Initialize a new FixedDelay with a given initialDelay and subsequentDelay.
        Parameters:
        initialDelay - value for the initial delay
        subsequentDelay - value for all other delays
      • FixedDelay

        public FixedDelay​(int delay)
        Deprecated.
        Initialize a new FixedDelay with fixed delay value given by delay parameter.
        Parameters:
        delay - value for all delays
    • Method Detail

      • nextDelay

        public long nextDelay()
        Deprecated.
        The value computed by this DelayStrategy for the next delay.
        Specified by:
        nextDelay in interface DelayStrategy
        Returns:
        a delay value