Package org.apache.pekko.cluster
Class ClusterEvent.RoleLeaderChanged
java.lang.Object
org.apache.pekko.cluster.ClusterEvent.RoleLeaderChanged
- All Implemented Interfaces:
Serializable
,DeadLetterSuppression
,ClusterEvent.ClusterDomainEvent
,scala.Equals
,scala.Product
- Enclosing class:
- ClusterEvent
public static final class ClusterEvent.RoleLeaderChanged
extends Object
implements ClusterEvent.ClusterDomainEvent, scala.Product, Serializable
First member (leader) of the members within a role set (in the same data center as this node,
if data centers are used) changed.
Published when the state change is first seen on a node.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
scala.Option<Address>
boolean
Java APIint
hashCode()
scala.Option<Address>
leader()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
role()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
RoleLeaderChanged
-
-
Method Details
-
role
-
leader
-
getLeader
Java API- Returns:
- address of current leader, or null if none
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-