class

Quartz::EventSet

Inherits Reference / Object

EventSet represents the pending event set and encompasses all future events scheduled to occur.

Constructors

new(time : TimePoint = TimePoint.new(0)) : self
Source
new(priority_queue : Symbol, current_time : TimePoint = TimePoint.new(0))
Source

Instance methods

advance(by duration : Duration) : TimePoint

Advance the current time up to the specified planned duration using a multiscale time advancement.

Raises if the current time advances beyond the imminent events.

Source
advance(until t : TimePoint) : TimePoint

Advance the current time until it reaches the given time point.

Source
advance

Advance the current time up to the next planned event.

Source
cancel_event(event : Schedulable) : Schedulable | Nil

Cancel the specified event.

Source
clear

Clears self.

Source
current_time

Returns the current time associated with the event set.

Source
current_time=(current_time : TimePoint)

Returns the current time associated with the event set.

Source
duration_of(event : Schedulable) : Duration

Returns the planned duration after which the specified event will occur.

Source
each_imminent_event

Deletes and yields each imminent simultaneous event.

Source
empty?

Whether the event set is empty.

Source
imminent_duration

Returns the planned Duration associated with the future imminent events to occur, or Duration::INFINIY if self is empty.

Source
inspect(io)
Source
plan_event(event : Schedulable, duration : Duration)

Schedules a future event at a given planned duration.

Source
pop_imminent_event

Deletes and returns the next imminent event to occur.

Source
pop_imminent_events

Deletes and returns all imminent simultaneous events.

Source
priority_queue
Source
size

Returns the number of scheduled events.

Source