org.powerscala.event.processor

EventProcessor

Related Docs: object EventProcessor | package processor

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def eventManifest: Manifest[Event]

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

    Attributes
    protected
  3. abstract def listenable: Listenable

  4. abstract def name: String

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

    Attributes
    protected

Concrete Value Members

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

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

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

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

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

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

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

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

    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

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

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

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

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

    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

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

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

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

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

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

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

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

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

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

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

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

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

    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]

    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]

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

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

    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped