Trait/Object

org.powerscala.event.processor

EventProcessor

Related Docs: object EventProcessor | package processor

Permalink

trait EventProcessor[Event, Response, Result] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventProcessor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def eventManifest: Manifest[Event]

    Permalink
  2. abstract def handleListenerResponse(value: Response, state: EventState[Event]): Unit

    Permalink
    Attributes
    protected
  3. abstract def listenable: Listenable

    Permalink
  4. abstract def name: String

    Permalink
  5. abstract def responseFor(state: EventState[Event]): Result

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +=(listener: Listener[Event, Response]): Unit

    Permalink
  4. def -=(listener: Listener[Event, Response]): Unit

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add(listener: Listener[Event, Response]): Unit

    Permalink
  7. def and[NE >: Event, NV >: Response, NR >: Result](processor: EventProcessor[NE, NV, NR]): ProcessorGroup[NE, NV, NR]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def create(priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response): FunctionalListener[Event, Response]

    Permalink

    Creates the listener but does not add it.

    Creates the listener but does not add it.

    priority

    the priority of this listener

    modes

    the modes the listener should listen to. If this is empty it will be set to EventProcessor.DefaultModes.

    f

    the function to invoke when the listener is invoked.

    returns

    Listener

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fire(event: Event, mode: ListenMode = ListenMode.Standard): Result

    Permalink
  15. def fireAdditional(state: EventState[Event], mode: ListenMode, listenable: Listenable): Unit

    Permalink

    Allows extending classes to continue processing on additional listeners if needed before a response is determined and sent back to the caller.

    Allows extending classes to continue processing on additional listeners if needed before a response is determined and sent back to the caller.

    state

    the current EventState

    mode

    the current ListenMode

    listenable

    the current Listenable

    Attributes
    protected
  16. def fireInternal(state: EventState[Event], mode: ListenMode, listenable: Listenable): Unit

    Permalink
    Attributes
    protected
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isListenerTypeValid(state: EventState[Event], listener: Listener[_, _]): Boolean

    Permalink
    Attributes
    protected
  21. def isModeValid(listener: Listener[_, _], mode: ListenMode): Boolean

    Permalink
    Attributes
    protected
  22. def isNameValid(listener: Listener[_, _]): Boolean

    Permalink
    Attributes
    protected
  23. def listen(priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response): FunctionalListener[Event, Response]

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def on(f: (Event) ⇒ Response, priority: Priority = Priority.Normal): FunctionalListener[Event, Response]

    Permalink
  28. def once(f: (Event) ⇒ Response, priority: Priority = Priority.Normal): Listener[Event, Response]

    Permalink

    Works similarly to on but after the first event is received the listener is removed.

    Works similarly to on but after the first event is received the listener is removed.

    f

    the function to invoke upon event.

    returns

    listener

  29. def onceConditional(default: Response, priority: Priority = Priority.Normal)(f: (Event) ⇒ Option[Response]): Listener[Event, Response]

    Permalink

    Invokes the function upon each event until it returns Some[V] and then removes the listener from receiving any other invocations.

    Invokes the function upon each event until it returns Some[V] and then removes the listener from receiving any other invocations.

    default

    the default value to send if None is returned by the function.

    priority

    the priority for this listener. Defaults to Normal.

    f

    the function to invoke upon event.

    returns

    Listener[E, V, R]

  30. def partial(default: Response, priority: Priority = Priority.Normal)(f: PartialFunction[Event, Response]): FunctionalListener[Event, Response]

    Permalink
  31. def remove(listener: Listener[Event, Response]): Unit

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped