Package eu.woolplatform.utils.schedule
Class TaskSchedule.LocalTime
- java.lang.Object
-
- eu.woolplatform.utils.schedule.TaskSchedule
-
- eu.woolplatform.utils.schedule.TaskSchedule.LocalTime
-
- Enclosing class:
- TaskSchedule
public static class TaskSchedule.LocalTime extends TaskSchedule
Schedule for a task that should run once at a specific local 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 LocalTime(org.joda.time.LocalDateTime time, boolean exact)Constructs a new local time schedule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.LocalDateTimegetTime()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.
-
-
-
Constructor Detail
-
LocalTime
public LocalTime(org.joda.time.LocalDateTime time, boolean exact)Constructs a new local time schedule.- Parameters:
time- the time when the task should runexact- 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.LocalDateTime 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
-
-