java.lang.Object
org.apache.pekko.cluster.typed.Subscribe<A>
All Implemented Interfaces:
Serializable, ClusterStateSubscription, scala.Equals, scala.Product

public final class Subscribe<A extends ClusterEvent.ClusterDomainEvent> extends Object implements ClusterStateSubscription, scala.Product, Serializable
Subscribe to cluster state changes. The initial state of the cluster will be sent as a "replay" of the subscribed events.

param: subscriber A subscriber that will receive events until it is unsubscribed or stops param: eventClass The type of events to subscribe to, can be individual event types such as ReachabilityEvent or one of the common supertypes, such as MemberEvent to get all the subtypes of events.

See Also: