TimeWindows

data class TimeWindows(val cronExpression: String = ALWAYS, val duration: Long = DEFAULT_WINDOW_DURATION)

Class to configure the time windows behaviour. It defines when a forced update can be applied based on a schedule defined as cron expression (QUARTZ) and a duration in seconds.

Constructors

Link copied to clipboard
fun TimeWindows(cronExpression: String = ALWAYS, duration: Long = DEFAULT_WINDOW_DURATION)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cronExpression: String

A cron expression (QUARTZ) that defines when the time windows begin. Default value: * * * ? * *

Link copied to clipboard
val duration: Long

Duration of time windows in seconds. Min value is 1. Default value: 3600

Link copied to clipboard
val isValid: Boolean