| DslSubscribeT Method |
Constructs a message that, when send to
Replicator,
will perform a subscription of provided
subscriber actor to any
changes performed on the provided
key.
All changes will be send in form of a
Changed message to the
subscriber.
Namespace:
Akka.DistributedData
Assembly:
Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Subscribe Subscribe<T>(
IKey<T> key,
IActorRef subscriber
)
where T : IReplicatedData
static member Subscribe :
key : IKey<'T> *
subscriber : IActorRef -> Subscribe when 'T : IReplicatedData
Parameters
- key
- Type: Akka.DistributedDataIKeyT
Key used to subscribe an actor to all changes occurring in correlated data structure. - subscriber
- Type: Akka.ActorIActorRef
Actor subscribing to changes under provided key.
Type Parameters
- T
- Replicated data type.
Return Value
Type:
SubscribeTBD
See Also