final case class Subscribe[A <: ClusterDomainEvent](subscriber: ActorRef[A], eventClass: Class[A]) extends ClusterStateSubscription with Product with Serializable
Subscribe to cluster state changes. The initial state of the cluster will be sent as a "replay" of the subscribed events.
- subscriber
A subscriber that will receive events until it is unsubscribed or stops
- eventClass
The type of events to subscribe to, can be individual event types such as
ReachabilityEvent
or one of the common supertypes, such asMemberEvent
to get all the subtypes of events.
- Source
- Cluster.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Subscribe
- Serializable
- Serializable
- Product
- Equals
- ClusterStateSubscription
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Subscribe(subscriber: ActorRef[A], eventClass: Class[A])
- subscriber
A subscriber that will receive events until it is unsubscribed or stops
- eventClass
The type of events to subscribe to, can be individual event types such as
ReachabilityEvent
or one of the common supertypes, such asMemberEvent
to get all the subtypes of events.