public enum SubscriptionInitialPosition extends Enum<SubscriptionInitialPosition>
Enum Constant and Description |
---|
Earliest
the earliest position which means the start consuming position will be the first message
|
Latest
the latest position which means the start consuming position will be the last message
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static SubscriptionInitialPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionInitialPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionInitialPosition Latest
public static final SubscriptionInitialPosition Earliest
public static SubscriptionInitialPosition[] values()
for (SubscriptionInitialPosition c : SubscriptionInitialPosition.values()) System.out.println(c);
public static SubscriptionInitialPosition 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 final int getValue()