Class Subscribe
Register a subscriber that will be notified with a Changed message
when the value of the given Key is changed. Current value is also
sent as a Changed message to a new subscriber.
Subscribers will be notified periodically with the configured notify-subscribers-interval
,
and it is also possible to send an explicit FlushChanges
message to
the Akka.DistributedData.Replicator to notify the subscribers immediately.
The subscriber will automatically be unregistered if it is terminated.
If the key is deleted the subscriber is notified with a DataDeleted message.
Assembly: Akka.DistributedData.dll
Syntax
[Serializable]
public sealed class Subscribe : IReplicatorMessage, IEquatable<Subscribe>
Constructors
|
Improve this Doc
View Source
Subscribe(IKey, IActorRef)
Declaration
public Subscribe(IKey key, IActorRef subscriber)
Parameters
Properties
|
Improve this Doc
View Source
Key
Declaration
Property Value
|
Improve this Doc
View Source
Subscriber
Declaration
public IActorRef Subscriber { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Subscribe)
Declaration
public bool Equals(Subscribe other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods