Package akka.cluster.typed
Class Subscribe<A extends ClusterEvent.ClusterDomainEvent>
- java.lang.Object
-
- akka.cluster.typed.Subscribe<A>
-
- All Implemented Interfaces:
ClusterStateSubscription
,java.io.Serializable
,scala.Equals
,scala.Product
public final class Subscribe<A extends ClusterEvent.ClusterDomainEvent> extends java.lang.Object implements ClusterStateSubscription, scala.Product, java.io.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 asMemberEvent
to get all the subtypes of events.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A>apply(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
boolean
canEqual(java.lang.Object x$1)
<A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A>copy(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
<A extends ClusterEvent.ClusterDomainEvent>
ActorRef<A>copy$default$1()
<A extends ClusterEvent.ClusterDomainEvent>
java.lang.Class<A>copy$default$2()
static <A extends ClusterEvent.ClusterDomainEvent>
Subscribe<A>create(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
Java APIboolean
equals(java.lang.Object x$1)
java.lang.Class<A>
eventClass()
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
ActorRef<A>
subscriber()
java.lang.String
toString()
static <A extends ClusterEvent.ClusterDomainEvent>
scala.Option<scala.Tuple2<ActorRef<A>,java.lang.Class<A>>>unapply(Subscribe<A> x$0)
-
-
-
Method Detail
-
create
public static <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> create(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
Java API
-
apply
public static <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> apply(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
-
unapply
public static <A extends ClusterEvent.ClusterDomainEvent> scala.Option<scala.Tuple2<ActorRef<A>,java.lang.Class<A>>> unapply(Subscribe<A> x$0)
-
eventClass
public java.lang.Class<A> eventClass()
-
copy
public <A extends ClusterEvent.ClusterDomainEvent> Subscribe<A> copy(ActorRef<A> subscriber, java.lang.Class<A> eventClass)
-
copy$default$1
public <A extends ClusterEvent.ClusterDomainEvent> ActorRef<A> copy$default$1()
-
copy$default$2
public <A extends ClusterEvent.ClusterDomainEvent> java.lang.Class<A> copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-