public enum ResponseType extends Enum<ResponseType>
Enum Constant and Description |
---|
ATTRIBUTE
Attribute message
|
BOOLEAN
boolean value.
|
BULK
byte array value.
|
ERROR
C String simple String representing an error.
|
MULTI
List of multiple bulk responses (List, Set, Map).
|
NUMBER
numeric value.
|
PUSH
Push message
|
SIMPLE
C String simple String.
|
Modifier and Type | Method and Description |
---|---|
static ResponseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType SIMPLE
public static final ResponseType ERROR
public static final ResponseType BOOLEAN
public static final ResponseType NUMBER
public static final ResponseType BULK
public static final ResponseType PUSH
public static final ResponseType ATTRIBUTE
public static final ResponseType MULTI
public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType 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 © 2023 Eclipse. All rights reserved.