public class TaskSchedule extends Object implements Serializable
TaskState.| Modifier and Type | Method and Description |
|---|---|
static TaskSchedule |
at(Instant instant)
Create a schedule to run a task at a specified instant.
|
TaskSchedule |
incrementByInterval()
Returns a copy of this Schedule that will start a task after the given interval
|
Optional<Duration> |
interval()
Get the interval that the task should recur, if it is a recurring task.
|
boolean |
isRecurring()
Get whether the task is a recurring task.
|
static TaskSchedule |
now()
Create a schedule to run a task now.
|
static TaskSchedule |
recurring(Duration interval)
Create a schedule to run a task that recurs on an interval.
|
static TaskSchedule |
recurring(Instant instant,
Duration interval)
Create a schedule to run a task that recurs on an interval, starting at the specified instance.
|
Instant |
runAt()
Get the instant the task is specified to run at.
|
public static TaskSchedule now()
public static TaskSchedule at(Instant instant)
public static TaskSchedule recurring(Duration interval)
public static TaskSchedule recurring(Instant instant, Duration interval)
public Instant runAt()
public Optional<Duration> interval()
public boolean isRecurring()
public TaskSchedule incrementByInterval()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.