C# Class Akka.Event.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: LoggingBus
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

Méthode Description
EventStream ( bool debug ) : System

Initializes a new instance of the EventStream class.

InitUnsubscriber ( IActorRef unsubscriber, ActorSystem system ) : bool
StartUnsubscriber ( ActorSystemImpl system ) : void
Subscribe ( IActorRef subscriber, Type channel ) : bool

Subscribes the specified subscriber.

Unsubscribe ( IActorRef subscriber ) : bool

Unsubscribes the specified subscriber.

Unsubscribe ( IActorRef subscriber, Type channel ) : bool

Unsubscribes the specified subscriber.

Private Methods

Méthode Description
RegisterWithUnsubscriber ( IActorRef subscriber ) : void
UnregisterIfNoMoreSubscribedChannels ( IActorRef subscriber ) : void

Method Details

EventStream() public méthode

Initializes a new instance of the EventStream class.
public EventStream ( bool debug ) : System
debug bool if set to true [debug].
Résultat System

InitUnsubscriber() public méthode

public InitUnsubscriber ( IActorRef unsubscriber, ActorSystem system ) : bool
unsubscriber IActorRef
system ActorSystem
Résultat bool

StartUnsubscriber() public méthode

public StartUnsubscriber ( ActorSystemImpl system ) : void
system ActorSystemImpl
Résultat void

Subscribe() public méthode

Subscribes the specified subscriber.
subscriber
public Subscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
Résultat bool

Unsubscribe() public méthode

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber ) : bool
subscriber IActorRef The subscriber.
Résultat bool

Unsubscribe() public méthode

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
Résultat bool