org.powerscala.event.processor

EventProcessor

trait EventProcessor[Event, Response, Result] extends Logging

Linear Supertypes
Logging, LoggingCore, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventProcessor
  2. Logging
  3. LoggingCore
  4. AnyRef
  5. 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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

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

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

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def asynchronousLogging: Boolean

    Attributes
    protected
    Definition Classes
    LoggingCore
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. 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

  14. def debug(message: ⇒ Any): Unit

    Definition Classes
    Logging
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def error(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  18. def error(message: ⇒ Any): Unit

    Definition Classes
    Logging
  19. def finalize(): Unit

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

  21. 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
  22. def fireInternal(state: EventState[Event], mode: ListenMode, listenable: Listenable): Unit

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

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

    Definition Classes
    AnyRef → Any
  25. def info(message: ⇒ Any): Unit

    Definition Classes
    Logging
  26. final def isInstanceOf[T0]: Boolean

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

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

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

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

  31. def log(level: Level, message: ⇒ Any): Unit

    Definition Classes
    LoggingCore
  32. val logger: InnerLogging

    Definition Classes
    LoggingCore
  33. def loggingClassName: String

    Attributes
    protected
    Definition Classes
    LoggingCore
  34. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. def trace(message: ⇒ Any): Unit

    Definition Classes
    Logging
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def warn(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  48. def warn(message: ⇒ Any): Unit

    Definition Classes
    Logging

Inherited from Logging

Inherited from LoggingCore

Inherited from AnyRef

Inherited from Any

Ungrouped