Class EventStream
The EventStream is a pub-sub stream of events that can be both system and user generated.
The subscribers are IActorRef instances and events can be any object. Subscriptions are hierarchical meaning that if you listen to an event for a particular type you will receive events for that type and any sub types.
If the debug flag is activated any operations on the event stream will be published as debug level events.
Inheritance
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public class EventStream : LoggingBus
Constructors
| Edit this page View SourceEventStream(bool)
Initializes a new instance of the EventStream class.
Declaration
public EventStream(bool debug)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | debug | if set to |
Methods
| Edit this page View SourceStartUnsubscriber(ActorSystemImpl)
Used to start the Unsubscriber actor, responsible for garabage-collecting all expired subscriptions when the subscribed actor terminates.
Declaration
public void StartUnsubscriber(ActorSystemImpl system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystemImpl | system | TBD |
Subscribe(IActorRef, Type)
Subscribes the specified subscriber.
Declaration
public override bool Subscribe(IActorRef subscriber, Type channel)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | subscriber | The subscriber. |
| Type | channel | The channel. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | This exception is thrown if the given |
Unsubscribe(IActorRef)
Unsubscribes the specified subscriber.
Declaration
public override bool Unsubscribe(IActorRef subscriber)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | subscriber | The subscriber. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | This exception is thrown if the given |
Unsubscribe(IActorRef, Type)
Unsubscribes the specified subscriber.
Declaration
public override bool Unsubscribe(IActorRef subscriber, Type channel)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | subscriber | The subscriber. |
| Type | channel | The channel. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | This exception is thrown if the given |
Edit this page