public static enum Command.ResponseType extends Enum<Command.ResponseType>
As with Command.RequestType
, there is further differentiation of the
Redis response types to further inform the semantics.
Beyond that, there is also linkage between the Command.ResponseType
and
its associated Response
interface extension.
Response
Enum Constant and Description |
---|
BOOLEAN |
BULK |
MULTI_BULK |
NOP |
NUMBER |
QUEUED |
RESULT_SET |
STATUS |
STRING |
VIRTUAL |
Modifier and Type | Method and Description |
---|---|
static Command.ResponseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command.ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command.ResponseType NOP
public static final Command.ResponseType VIRTUAL
public static final Command.ResponseType STATUS
public static final Command.ResponseType QUEUED
public static final Command.ResponseType STRING
public static final Command.ResponseType BOOLEAN
public static final Command.ResponseType NUMBER
public static final Command.ResponseType BULK
public static final Command.ResponseType MULTI_BULK
public static final Command.ResponseType RESULT_SET
public static Command.ResponseType[] values()
for (Command.ResponseType c : Command.ResponseType.values()) System.out.println(c);
public static Command.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 © 2009–2017. All rights reserved.