Package org.apache.pekko.cluster
Class ClusterEvent.LeaderChanged
java.lang.Object
org.apache.pekko.cluster.ClusterEvent.LeaderChanged
- All Implemented Interfaces:
Serializable,DeadLetterSuppression,ClusterEvent.ClusterDomainEvent,scala.Equals,scala.Product
- Enclosing class:
- ClusterEvent
public static final class ClusterEvent.LeaderChanged
extends Object
implements ClusterEvent.ClusterDomainEvent, scala.Product, Serializable
Leader of the cluster data center of this node changed. Published when the state change
is first seen on a node.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanscala.Option<Address>booleanJava APIinthashCode()scala.Option<Address>leader()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
LeaderChanged
-
-
Method Details
-
leader
-
getLeader
Java API- Returns:
- address of current leader, or null if none
-
copy
-
copy$default$1
-
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
-