Package-level declarations

Types

Link copied to clipboard
class RepeatedTask @JvmOverloads constructor(val name: String, meterRegistry: MeterRegistry = Metrics.globalRegistry, repeatedTaskConfig: RepeatedTaskConfig = RepeatedTaskConfig(), retryPolicy: suspend RetryFailure<Throwable>.() -> RetryInstruction = defaultThrowableRetryPolicy + binaryExponentialBackoff( base = repeatedTaskConfig.defaultJitterMs, max = repeatedTaskConfig.defaultMaxDelayMs ), taskConfig: TaskConfig = TaskConfig(), task: (name: String, taskConfig: TaskConfig) -> Status)

A RepeatedTask runs a repeated task at the user controlled rate.

Link copied to clipboard
data class RepeatedTaskConfig @JvmOverloads constructor(val timeBetweenRunsMs: Long = 30000, val initialDelayMs: Long = 0, val defaultJitterMs: Long = 50, val defaultMaxDelayMs: Long = 60000) : Config
Link copied to clipboard
class RepeatedTaskManager @JvmOverloads constructor(meterRegistry: MeterRegistry = Metrics.globalRegistry)

Basic management of repeated tasks.

Link copied to clipboard
class RepeatedTaskMetrics(meterRegistry: MeterRegistry)

Metrics for repeated tasks:

Link copied to clipboard
enum Status : Enum<Status>
Link copied to clipboard
open class TaskConfig : Config

Config to pass to the task. Extend this to pass in anything else your task may need.

Properties

Link copied to clipboard

By default, continue retrying