Enum Class ExporterDirectorContext.ExporterMode
java.lang.Object
java.lang.Enum<ExporterDirectorContext.ExporterMode>
io.camunda.zeebe.broker.exporter.stream.ExporterDirectorContext.ExporterMode
- All Implemented Interfaces:
Serializable,Comparable<ExporterDirectorContext.ExporterMode>,Constable
- Enclosing class:
- ExporterDirectorContext
public static enum ExporterDirectorContext.ExporterMode
extends Enum<ExporterDirectorContext.ExporterMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExporterDirectorContext.ExporterMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
ACTIVE, means it is actively running the exporting and distributes the exporter positions to the followers. This mode is used on the leader side. -
PASSIVE
PASSIVE, means it is not actively exporting records. It is consuming the distributed exporter positions and stores them in the state. This mode is used on the follower side.
-
-
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
-