Enum Class ProducerAccessMode
- All Implemented Interfaces:
Serializable, Comparable<ProducerAccessMode>, Constable
Access mode for a producer on a topic.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly one producer is allowed on the topic.Only one producer is allowed on the topic.Multiple producers can publish on the topic.Only one producer is allowed on the topic. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProducerAccessModeReturns the enum constant of this class with the specified name.static ProducerAccessMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHARED
Multiple producers can publish on the topic. -
EXCLUSIVE
Only one producer is allowed on the topic. If another producer tries to connect, it will fail. -
EXCLUSIVE_WITH_FENCING
Only one producer is allowed on the topic. If another producer tries to connect, the existing producer is fenced and disconnected. -
WAIT_FOR_EXCLUSIVE
Only one producer is allowed on the topic. If another producer is already connected, the new producer will wait until it can acquire exclusive access.
-
-
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
-