public enum ProducerAccessMode extends Enum<ProducerAccessMode>
| Enum Constant and Description |
|---|
Exclusive
Require exclusive access for producer.
|
Shared
By default multiple producers can publish on a topic.
|
WaitForExclusive
Producer creation is pending until it can acquire exclusive access.
|
| Modifier and Type | Method and Description |
|---|---|
static ProducerAccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProducerAccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProducerAccessMode Shared
public static final ProducerAccessMode Exclusive
public static final ProducerAccessMode WaitForExclusive
public static ProducerAccessMode[] values()
for (ProducerAccessMode c : ProducerAccessMode.values()) System.out.println(c);
public static ProducerAccessMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017–2021 Apache Software Foundation. All rights reserved.