Package

org.powerscala.event

processor

Permalink

package processor

Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    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

    Permalink

  3. class EventToken extends AnyRef

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

    Permalink

    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]]

    Permalink

    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]]

    Permalink

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

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

    Permalink

    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

    Permalink

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

    Permalink

    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

    Permalink

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

    Permalink

    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]

    Permalink

    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

    Permalink
  2. object EventToken extends EventToken

    Permalink

Ungrouped