org.powerscala.event

processor

package processor

Visibility
  1. Public
  2. All

Type Members

  1. class EitherProcessor[E, R] extends EventProcessor[E, Either[E, R], Either[E, R]]

    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).

  2. trait EventProcessor[Event, Response, Result] extends AnyRef

  3. class EventToken extends AnyRef

  4. class InterceptProcessor[E] extends EventProcessor[E, Intercept, Intercept]

    InterceptProcessor gives each listener the ability to Stop or Continue the processing.

    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.

  5. class ListProcessor[E, R] extends EventProcessor[E, Option[R], List[R]]

    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.

  6. class ModifiableOptionProcessor[E] extends EventProcessor[E, Option[E], Option[E]]

    ModifiableProcessor takes in an event and allows each listener the option to modify and return

  7. class ModifiableProcessor[E] extends EventProcessor[E, E, E]

    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.

  8. trait MultiTypedProcessor[V, R] extends AnyRef

  9. class OptionProcessor[E, R] extends EventProcessor[E, Option[R], Option[R]]

    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.

  10. case class ProcessorGroup[Event, Response, Result](processors: List[EventProcessor[Event, Response, Result]]) extends Product with Serializable

  11. class TokenProcessor extends EventProcessor[EventToken, Unit, Unit]

    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.

  12. class UnitProcessor[E] extends EventProcessor[E, Unit, Unit]

    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.

Value Members

  1. object EventProcessor

  2. object EventToken extends EventToken

Ungrouped