ScheduleContext

class ScheduleContext @InternalWowApi constructor(val timer: String, val key: String, val slot: Long, val due: Long, val skipped: Long = 0)

Which time of a schedule a command was sent for, as its target reads it from me.ahoo.wow.api.decide.Command.schedule: the timer (ref#key@version) of the schedule key, its slot (from 1, one per time it is due), the time that slot was due (epoch milliseconds), and how many slots before it a recurring schedule skipped because they were missed (Misfire.COALESCE). A command sent for a schedule carries it in its headers (HEADERS); its request id is timer#slot.

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

Constructors

Link copied to clipboard
constructor(timer: String, key: String, slot: Long, due: Long, skipped: Long = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val due: Long
Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard
val slot: Long
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(timer: String = this.timer, key: String = this.key, slot: Long = this.slot, due: Long = this.due, skipped: Long = this.skipped): ScheduleContext

This ScheduleContext 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 hashCode(): Int
Link copied to clipboard

The headers that carry this context; SKIPPED only when a slot was skipped.

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