public class SchedulerOptions<SelfType extends SchedulerOptions> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disabled |
protected long |
scheduleDelay |
protected long |
schedulePeriod |
protected TimeUnit |
scheduleUnit |
| Constructor and Description |
|---|
SchedulerOptions() |
| Modifier and Type | Method and Description |
|---|---|
long |
getScheduleDelay() |
long |
getSchedulePeriod() |
TimeUnit |
getScheduleUnit() |
boolean |
isDisabled() |
SelfType |
setDisabled(boolean disabled) |
String |
toString() |
SelfType |
withScheduleDelay(long scheduleDelay) |
SelfType |
withSchedulePeriod(long schedulePeriod) |
SelfType |
withScheduleUnit(TimeUnit scheduleUnit) |
protected boolean disabled
protected long scheduleDelay
protected long schedulePeriod
protected TimeUnit scheduleUnit
public long getSchedulePeriod()
public SelfType withSchedulePeriod(long schedulePeriod)
public TimeUnit getScheduleUnit()
public long getScheduleDelay()
public SelfType withScheduleDelay(long scheduleDelay)
public boolean isDisabled()
public SelfType setDisabled(boolean disabled)
Copyright © 2015. All rights reserved.