Class RetryTimeout


  • public class RetryTimeout
    extends Object
    This class holds all data to define the timeout between retries.
    • Method Detail

      • timeout

        public static RetryTimeout timeout​(int number,
                                           org.quartz.DateBuilder.IntervalUnit unit)
        Creates an instance of RetryTimeout with the defined timeout.
        Parameters:
        number - number to use with the unit
        unit - IntervalUnit to use
        Returns:
        instance of RetryTimeout with the specified timeout data.
      • getNumber

        public int getNumber()
        Gets the numeric part of the timeout
        Returns:
        numeric part of the timeout
      • getUnit

        public org.quartz.DateBuilder.IntervalUnit getUnit()
        Gets the unit part of the timeout
        Returns:
        unit part of the timeout