Enum Class ReplicationPrimaryIsStoppingMessage.PrimaryStopping
java.lang.Object
java.lang.Enum<ReplicationPrimaryIsStoppingMessage.PrimaryStopping>
org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ReplicationPrimaryIsStoppingMessage.PrimaryStopping
- All Implemented Interfaces:
Serializable,Comparable<ReplicationPrimaryIsStoppingMessage.PrimaryStopping>,Constable
- Enclosing class:
- ReplicationPrimaryIsStoppingMessage
public static enum ReplicationPrimaryIsStoppingMessage.PrimaryStopping
extends Enum<ReplicationPrimaryIsStoppingMessage.PrimaryStopping>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOrders the backup to fail-over immediately.Notifies the backup that its primary is going to stop. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOP_CALLED
Notifies the backup that its primary is going to stop. The backup will then NOT fail-over if it gets signals from the cluster that its primary sent a disconnect. -
FAIL_OVER
Orders the backup to fail-over immediately. Meant as a follow-up message toSTOP_CALLED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-