public static final class Replicator.Subscribe<A extends ReplicatedData> extends java.lang.Object implements Replicator.ReplicatorMessage, scala.Product, scala.Serializable
Replicator.Changed
message
when the value of the given key
is changed. Current value is also
sent as a Replicator.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 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 Replicator.DataDeleted
message.
Constructor and Description |
---|
Subscribe(Key<A> key,
ActorRef subscriber) |
Modifier and Type | Method and Description |
---|---|
Key<A> |
key() |
ActorRef |
subscriber() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait