BarrierScope

The BarrierScope defines the available scope that can be assigned to a Barrier via a BarrierSettings

There are only two available scopes that a Barrier can impact:

A Barrier scoped to All will be checked for its state for every Dispatcher before dispatching events to it. A Barrier scoped to Dispatcher will only be checked for its state before dispatching events to the Dispatchers identified by the provided dispatcherIds.

Inheritors

Types

Link copied to clipboard
object All : BarrierScope

This BarrierScope will affect all Dispatcher implementations.

Link copied to clipboard
Link copied to clipboard
data class Dispatchers(val dispatcherIds: List<String>) : BarrierScope

This BarrierScope will only affect the Dispatcher implementations with the matching Dispatcher.id values provided in the dispatcherIds list.

Functions

Link copied to clipboard
abstract fun asDataItem(): DataItem

Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be: