public enum ResponseMode extends java.lang.Enum<ResponseMode>
Enum Constant and Description |
---|
GET_ALL
return all responses
|
GET_FIRST
Returns the first response received
|
GET_MAJORITY
Deprecated.
|
GET_NONE
return no response (async call)
|
Modifier and Type | Method and Description |
---|---|
static ResponseMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseMode GET_FIRST
public static final ResponseMode GET_ALL
@Deprecated public static final ResponseMode GET_MAJORITY
public static final ResponseMode GET_NONE
public static ResponseMode[] values()
for (ResponseMode c : ResponseMode.values()) System.out.println(c);
public static ResponseMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 1998-2020 Red Hat. All Rights Reserved.