public class ReaderSchedule extends Object
ReaderSchedule class.
| Modifier and Type | Method and Description | 
|---|---|
static ReaderSchedule | 
createSchedule()
createSchedule 
 | 
static ReaderSchedule | 
createSchedule(long initDelay,
              long interval,
              int attempts,
              TimeUnit unit)
createSchedule 
 | 
static ReaderSchedule | 
createSchedule(long interval,
              String unit)
Creates a proper  
ReaderSchedule based by computing a new interval based on the
 string representation of units from the ackd-configuration:
     hours(h), days(d), minutes(m), seconds(s), milliseconds(ms)
 note: if the specification in the configuration is seconds (s) or milliseconds (ms), then no computation is made
 to adjust the interval. | 
long | 
getAttemptsRemaining()
getAttemptsRemaining 
 | 
long | 
getInitialDelay()
getInitialDelay 
 | 
long | 
getInterval()
getInterval 
 | 
TimeUnit | 
getUnit()
getUnit 
 | 
void | 
setAttemptsRemaining(long attemptsRemaining)
setAttemptsRemaining 
 | 
void | 
setInitialDelay(long initialDelay)
setInitialDelay 
 | 
void | 
setInterval(long interval)
setInterval 
 | 
void | 
setUnit(TimeUnit unit)
setUnit 
 | 
public static ReaderSchedule createSchedule()
createSchedule
ReaderSchedule object.public static ReaderSchedule createSchedule(long initDelay, long interval, int attempts, TimeUnit unit)
createSchedule
initDelay - a long.interval - a long.attempts - a int.unit - a TimeUnit object.ReaderSchedule object.public long getInitialDelay()
getInitialDelay
public void setInitialDelay(long initialDelay)
setInitialDelay
initialDelay - a long.public long getInterval()
getInterval
public void setInterval(long interval)
setInterval
interval - a long.public long getAttemptsRemaining()
getAttemptsRemaining
public void setAttemptsRemaining(long attemptsRemaining)
setAttemptsRemaining
attemptsRemaining - a long.public static ReaderSchedule createSchedule(long interval, String unit)
ReaderSchedule based by computing a new interval based on the
 string representation of units from the ackd-configuration:
     hours(h), days(d), minutes(m), seconds(s), milliseconds(ms)
 note: if the specification in the configuration is seconds (s) or milliseconds (ms), then no computation is made
 to adjust the interval.interval - a long.unit - a String object.ReaderScheduleCopyright © 2020. All rights reserved.