public static enum Response.Type extends 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 | Method and Description |
---|---|
Class<?> |
getDataClass() |
static Response.Type |
valueOf(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 final Class<?> dataClass
public static Response.Type[] values()
for (Response.Type c : Response.Type.values()) System.out.println(c);
public static Response.Type 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 Class<?> getDataClass()
Copyright © 2009–2019. All rights reserved.