BatchedScheduler

interface BatchedScheduler<T> : Scheduler<T>

Extension to Scheduler to allow for batched retrieval from the queue.

Parameters

<T>

concentration type

Inheritors

Functions

Link copied to clipboard
abstract fun addReaction(reaction: Actionable<T>)
Adds a reaction to the data structure.
Link copied to clipboard
abstract fun getNext(): Actionable<T>
Allows to access the next reaction to be executed.
Link copied to clipboard
abstract fun getNextBatch(): List<Actionable<T>>
Retrieve the next scheduled batch of reactions.
Link copied to clipboard
abstract fun removeReaction(reaction: Actionable<T>)
Removes a reaction from the structure.
Link copied to clipboard
abstract fun updateReaction(reaction: Actionable<T>)
Notifies the structure that the reaction r has changed.