EitherProcessor takes in an event and allows each listener the option to modify and return via Left or respond with an alternate response with Right (immediately stops propagating and returns).
InterceptProcessor gives each listener the ability to Stop or Continue the processing.
ListProcessor expects an Option[R] from each listener and builds a list from Some[R] responses.
ListProcessor expects an Option[R] from each listener and builds a list from Some[R] responses. The combined List[R] is returned upon completion of iteration over listeners or at stopPropagation.
ModifiableProcessor takes in an event and allows each listener the option to modify and return
ModifiableProcessor takes in a value and allows each listener the option to replace the value as it goes through the process finally returning the result.
OptionProcessor gives each listener the ability to return Option[R].
OptionProcessor gives each listener the ability to return Option[R]. If Some is returned no more listeners will be invoked for the event and it will return immediately. If all listeners return None or there are no listeners, then None will be the result.
TokenProcessor works similarly to UnitProcessor except there is no real "event" that is supplied so EventToken is provided.
TokenProcessor works similarly to UnitProcessor except there is no real "event" that is supplied so EventToken is provided. This can be useful for events that simply say "something happened" but don't include any additional information that would be provided in an event.
UnitProcessor takes in E and passes it to all listeners.
UnitProcessor takes in E and passes it to all listeners. The response is irrelevant as Unit is the return value. This is useful for standard event processing that has no result but simply passes events to listeners.
InterceptProcessor gives each listener the ability to Stop or Continue the processing. If Stop is returned by one of the listeners no further listeners will be invoked with the event and Stop will be returned. If all listeners return Continue or there are no listeners, then Continue will be returned.