Cron

class Cron @InternalWowApi constructor(val expression: String, val zone: String = UTC, val misfire: Misfire = Misfire.COALESCE) : ScheduleRule

Due at each time expression names, in the time zone zone (UTC by default), six fields as Spring's CronExpression reads them; a time missed while no node fired it is handled as misfire says. The runtime evaluates it: the first slot is the first time after the commit that sets it, and each next one the first time after the slot before it.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(expression: String, zone: String = UTC, misfire: Misfire = Misfire.COALESCE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(expression: String = this.expression, zone: String = this.zone, misfire: Misfire = this.misfire): ScheduleRule.Cron

This Cron with the given fields replaced: Wow's own copy, left out of the ABI.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun firstDue(commitTime: Long): Long?

The first time the schedule is due, in epoch milliseconds, when it is set by a commit at commitTime; null when the rule is evaluated by the runtime, as a Cron rule is.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String