[go: up one dir, main page]

Module dispatcher

Module dispatcher 

Source
Expand description

Special module that allows users to interact and communicate with a group of actors through the dispatchers that holds information about actors grouped together.

Structs§

Dispatcher
A generic implementation of the Bastion dispatcher
RoundRobinHandler
Dispatcher that will do simple round-robin distribution

Enums§

BroadcastTarget
Defines types of the notifications handled by the dispatcher when the group of actors is changing.
DispatcherType
Defines the type of the dispatcher.
NotificationType
Defines types of the notifications handled by the dispatcher when the group of actors is changing.

Traits§

DispatcherHandler
Generic trait which any custom dispatcher handler must implement for the further usage by the Dispatcher instances.
Recipient
A Recipient is responsible for maintaining it’s list of recipients, and deciding which child gets to receive which message.
RecipientHandler
A RecipientHandler is a Recipient implementor, that can be stored in the dispatcher

Type Aliases§

DefaultDispatcherHandler
The default handler, which does round-robin.
DefaultRecipientHandler
The default handler, which does round-robin.
DispatcherMap
Type alias for the concurrency hashmap. Each key-value pair stores the Bastion identifier as the key and the module name as the value.
RecipientMap
Type alias for the recipients hashset. Each key-value pair stores the Bastion identifier as the key.