public static enum Response.Type extends java.lang.Enum<Response.Type>
Command.SET
Command.GET
Command.KEYS
Command.LRANGE
This enum reflects these types and provides additional information regarding the expected flavor of the response data.
| Modifier and Type | Field and Description |
|---|---|
java.lang.Class<?> |
dataClass |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getDataClass() |
static Response.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Response.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Response.Type Status
public static final Response.Type Value
public static final Response.Type Bulk
public static final Response.Type MultiBulk
public static Response.Type[] values()
for (Response.Type c : Response.Type.values()) System.out.println(c);
public static Response.Type 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 nullpublic java.lang.Class<?> getDataClass()