public enum MessageAcquireMode extends Enum<MessageAcquireMode>
Enum Constant and Description |
---|
NOT_ACQUIRED |
PRE_ACQUIRED |
Modifier and Type | Method and Description |
---|---|
static MessageAcquireMode |
get(short value) |
short |
getValue() |
static MessageAcquireMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageAcquireMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageAcquireMode PRE_ACQUIRED
public static final MessageAcquireMode NOT_ACQUIRED
public static MessageAcquireMode[] values()
for (MessageAcquireMode c : MessageAcquireMode.values()) System.out.println(c);
public static MessageAcquireMode 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 short getValue()
public static MessageAcquireMode get(short value)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.