TaskSchedule

gears.async.TaskSchedule

TaskSchedule describes the way in which a task should be repeated. Tasks can be set to run for example every 100 milliseconds or repeated as long as they fail. maxRepetitions describes the maximum amount of repetitions allowed, after that regardless of TaskSchedule chosen, the task is not repeated anymore and the last returned value is returned. maxRepetitions equal to zero means that repetitions can go on potentially forever.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Every(millis: Long, maxRepetitions: Long)
final case class ExponentialBackoff(millis: Long, exponentialBase: Int, maxRepetitions: Long)
final case class FibonacciBackoff(millis: Long, maxRepetitions: Long)
final case class RepeatUntilFailure(millis: Long, maxRepetitions: Long)
final case class RepeatUntilSuccess(millis: Long, maxRepetitions: Long)