Package eu.woolplatform.utils.schedule
Class TaskSchedule.UtcTime
- java.lang.Object
-
- eu.woolplatform.utils.schedule.TaskSchedule
-
- eu.woolplatform.utils.schedule.TaskSchedule.UtcTime
-
- Enclosing class:
- TaskSchedule
public static class TaskSchedule.UtcTime extends TaskSchedule
Schedule for a task that should run once at a specific UTC time.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.woolplatform.utils.schedule.TaskSchedule
TaskSchedule.FixedDelay, TaskSchedule.FixedRate, TaskSchedule.Immediate, TaskSchedule.LocalTime, TaskSchedule.TimeSchedule, TaskSchedule.UtcTime
-
-
Constructor Summary
Constructors Constructor Description UtcTime(org.joda.time.DateTime time, boolean exact)Constructs a new UTC time schedule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.DateTimegetTime()Returns the time when the task should run.booleanisExact()Returns true if the task should be run exactly at the specified time, false if it can be run later to save energy.
-
-
-
Method Detail
-
getTime
public org.joda.time.DateTime getTime()
Returns the time when the task should run.- Returns:
- the time when the task should run
-
isExact
public boolean isExact()
Returns true if the task should be run exactly at the specified time, false if it can be run later to save energy.- Returns:
- true if the task should be run exactly at the specified time, false if it can be run later to save energy
-
-