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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. EventStream
  2. SubchannelClassification
  3. LoggingBus
  4. ActorEventBus
  5. EventBus
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventStream (debug: Boolean)

Type Members

  1. type Classifier = java.lang.Class[_]

    Definition Classes
    EventStreamLoggingBusEventBus
  2. type Event = AnyRef

    Definition Classes
    EventStreamLoggingBusEventBus
  3. type Subscriber = ActorRef

    Definition Classes
    ActorEventBusEventBus

Value Members

  1. def != (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. 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
  8. def clone (): AnyRef

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

    Attributes
    protected
    Definition Classes
    ActorEventBus
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  14. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  16. def logLevel : LogLevel

    Query currently set log level.

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

    Definition Classes
    LoggingBus
  17. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. 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
  21. def publish (event: Event): Unit

    Definition Classes
    SubchannelClassification
  22. 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
  23. implicit val subclassification : Subclassification[Class[_]]

    Attributes
    protected implicit
    Definition Classes
    EventStreamSubchannelClassification
  24. 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
  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. 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
  28. 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
  29. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SubchannelClassification

Inherited from LoggingBus

Inherited from ActorEventBus

Inherited from EventBus

Inherited from AnyRef

Inherited from Any