Package org.apache.pekko.cluster.typed
Class Subscribe<A extends ClusterEvent.ClusterDomainEvent>
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A>boolean<A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A><A extends ClusterEvent.ClusterDomainEvent>
ActorRef<A><A extends ClusterEvent.ClusterDomainEvent>
Class<A>static <A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A>Java APIbooleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()static <A extends ClusterEvent.ClusterDomainEvent>
scala.Option<scala.Tuple2<ActorRef<A>,Class<A>>> Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Subscribe
-
-
Method Details
-
create
public static <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> create(ActorRef<A> subscriber, Class<A> eventClass) Java API -
apply
public static <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> apply(ActorRef<A> subscriber, Class<A> eventClass) -
unapply
public static <A extends ClusterEvent.ClusterDomainEvent> scala.Option<scala.Tuple2<ActorRef<A>,Class<A>>> unapply(Subscribe<A> x$0) -
subscriber
-
eventClass
-
copy
public <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> copy(ActorRef<A> subscriber, Class<A> eventClass) -
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-