Package ch.repnik.quartzretry
Class RetryTimeout
- java.lang.Object
-
- ch.repnik.quartzretry.RetryTimeout
-
public class RetryTimeout extends Object
This class holds all data to define the timeout between retries.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumber()Gets the numeric part of the timeoutorg.quartz.DateBuilder.IntervalUnitgetUnit()Gets the unit part of the timeoutstatic RetryTimeouttimeout(int number, org.quartz.DateBuilder.IntervalUnit unit)Creates an instance of RetryTimeout with the defined timeout.
-
-
-
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 unitunit- 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
-
-