akka.event

EventStream

class EventStream extends LoggingBus with SubchannelClassification

An Akka EventStream is a pub-sub stream of events both system and user generated, where subscribers are ActorRefs and the channels are Classes and Events are any java.lang.Object. EventStreams employ SubchannelClassification, which means that if you listen to a Class, you'll receive any message that is of that type or a subtype.

The debug flag in the constructor toggles if operations on this EventStream should also be published as Debug-Events

Source
EventStream.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventStream
  2. SubchannelClassification
  3. LoggingBus
  4. ActorEventBus
  5. EventBus
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventStream(debug: Boolean = false)

Type Members

  1. type Classifier = Class[_]

    Definition Classes
    EventStreamLoggingBusEventBus
  2. type Event = AnyRef

    Definition Classes
    EventStreamLoggingBusEventBus
  3. type Subscriber = ActorRef

    Definition Classes
    ActorEventBusEventBus

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 +(other: String): String

    Implicit information
    This member is added by an implicit conversion from EventStream to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (EventStream, B)

    Implicit information
    This member is added by an implicit conversion from EventStream to ArrowAssoc[EventStream] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def classify(event: AnyRef): Class[_]

    Returns the Classifier associated with the given Event

    Returns the Classifier associated with the given Event

    Attributes
    protected
    Definition Classes
    EventStreamSubchannelClassification
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compareSubscribers(a: ActorRef, b: ActorRef): Int

    Attributes
    protected
    Definition Classes
    ActorEventBus
  12. def ensuring(cond: (EventStream) ⇒ Boolean, msg: ⇒ Any): EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to Ensuring[EventStream] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (EventStream) ⇒ Boolean): EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to Ensuring[EventStream] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to Ensuring[EventStream] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to Ensuring[EventStream] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from EventStream to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  23. def logLevel: LogLevel

    Query currently set log level.

    Query currently set log level. See object Logging for more information.

    Definition Classes
    LoggingBus
  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 publish(event: AnyRef, subscriber: ActorRef): Unit

    Publishes the given Event to the given Subscriber

    Publishes the given Event to the given Subscriber

    Attributes
    protected
    Definition Classes
    EventStreamSubchannelClassification
  28. def publish(event: Event): Unit

    Definition Classes
    SubchannelClassification
  29. def setLogLevel(level: LogLevel): Unit

    Change log level: default loggers (i.

    Change log level: default loggers (i.e. from configuration file) are subscribed/unsubscribed as necessary so that they listen to all levels which are at least as severe as the given one. See object Logging for more information.

    NOTE: if the StandardOutLogger is configured also as normal logger, it will not participate in the automatic management of log level subscriptions!

    Definition Classes
    LoggingBus
  30. implicit val subclassification: Subclassification[Class[_]]

    The logic to form sub-class hierarchy

    The logic to form sub-class hierarchy

    Attributes
    protected
    Definition Classes
    EventStreamSubchannelClassification
  31. def subscribe(subscriber: ActorRef, channel: Class[_]): Boolean

    Attempts to register the subscriber to the specified Classifier

    Attempts to register the subscriber to the specified Classifier

    returns

    true if successful and false if not (because it was already subscribed to that Classifier, or otherwise)

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

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def unsubscribe(subscriber: ActorRef): Unit

    Attempts to deregister the subscriber from all Classifiers it may be subscribed to

    Attempts to deregister the subscriber from all Classifiers it may be subscribed to

    Definition Classes
    EventStreamSubchannelClassificationEventBus
  35. def unsubscribe(subscriber: ActorRef, channel: Class[_]): Boolean

    Attempts to deregister the subscriber from the specified Classifier

    Attempts to deregister the subscriber from the specified Classifier

    returns

    true if successful and false if not (because it wasn't subscribed to that Classifier, or otherwise)

    Definition Classes
    EventStreamSubchannelClassificationEventBus
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def [B](y: B): (EventStream, B)

    Implicit information
    This member is added by an implicit conversion from EventStream to ArrowAssoc[EventStream] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from EventStream to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventStream: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from EventStream to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventStream: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to ArrowAssoc[EventStream] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventStream: ArrowAssoc[EventStream]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: EventStream

    Implicit information
    This member is added by an implicit conversion from EventStream to Ensuring[EventStream] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventStream: Ensuring[EventStream]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from SubchannelClassification

Inherited from LoggingBus

Inherited from ActorEventBus

Inherited from EventBus

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from EventStream to StringAdd

Inherited by implicit conversion any2stringfmt from EventStream to StringFormat

Inherited by implicit conversion any2ArrowAssoc from EventStream to ArrowAssoc[EventStream]

Inherited by implicit conversion any2Ensuring from EventStream to Ensuring[EventStream]

Ungrouped