Package akka.cluster.typed
Class Leave
- java.lang.Object
-
- akka.cluster.typed.Leave
-
- All Implemented Interfaces:
ClusterCommand
,java.io.Serializable
,scala.Equals
,scala.Product
public final class Leave extends java.lang.Object implements ClusterCommand, scala.Product, java.io.Serializable
Send command to issue state transition to LEAVING for the node specified by 'address'. The member will go through the status changesMemberStatus
Leaving
(not published to subscribers) followed byMemberStatus
Exiting
and finallyMemberStatus
Removed
.Note that this command can be issued to any member in the cluster, not necessarily the one that is leaving. The cluster extension, but not the actor system or JVM, of the leaving member will be shutdown after the leader has changed status of the member to Exiting. Thereafter the member will be removed from the cluster. Normally this is handled automatically, but in case of network failures during this process it might still be necessary to set the node’s status to Down in order to complete the removal.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
address()
static Leave
apply(Address address)
boolean
canEqual(java.lang.Object x$1)
Leave
copy(Address address)
Address
copy$default$1()
static Leave
create(Address address)
Java APIboolean
equals(java.lang.Object x$1)
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()
java.lang.String
toString()
static scala.Option<Address>
unapply(Leave x$0)
-
-
-
Constructor Detail
-
Leave
public Leave(Address address)
-
-
Method Detail
-
address
public Address address()
-
copy$default$1
public Address copy$default$1()
-
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
-
-