public enum ProducerAccessMode extends Enum<ProducerAccessMode>
| Enum Constant and Description |
|---|
Exclusive |
Shared |
WaitForExclusive |
| Modifier and Type | Field and Description |
|---|---|
static int |
Exclusive_VALUE |
static int |
Shared_VALUE |
static int |
WaitForExclusive_VALUE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static ProducerAccessMode |
valueOf(int n) |
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 final int Shared_VALUE
public static final int Exclusive_VALUE
public static final int WaitForExclusive_VALUE
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 nullpublic int getValue()
public static ProducerAccessMode valueOf(int n)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.