Package com.blackrook.redis.enums
Class ReturnType<C>
- java.lang.Object
-
- com.blackrook.redis.enums.ReturnType<C>
-
- Type Parameters:
C
- the type to parse.
public class ReturnType<C> extends Object
Enumeration of Redis return types, used for figuring out what to return sometimes. Necessary for pipelining commands.- Author:
- Matthew Tropiano
-
-
Field Summary
Fields Modifier and Type Field Description static ReturnType<String[]>
ARRAY
ARRAY return type.static ReturnType<Boolean>
BOOLEAN
BOOLEAN return type.static ReturnType<boolean[]>
BOOLEANARRAY
BOOLEANARRAY return type.static ReturnType<DataType>
DATATYPE
DATATYPE return type.static ReturnType<Double>
DOUBLE
DOUBLE return type.static ReturnType<EncodingType>
ENCODING
ENCODING return type.static ReturnType<Long>
INTEGER
INTEGER return type.static ReturnType<RedisObject>
OBJECT
OBJECT return type.static ReturnType<Boolean>
OK
OK return type.static ReturnType<Boolean>
PONG
PONG return type.static ReturnType<String>
STRING
STRING return type.static ReturnType<KeyValue<String,String>>
STRINGPAIR
STRINGPAIR return type.
-
-
-
Field Detail
-
OK
public static final ReturnType<Boolean> OK
OK return type.
-
PONG
public static final ReturnType<Boolean> PONG
PONG return type.
-
BOOLEAN
public static final ReturnType<Boolean> BOOLEAN
BOOLEAN return type.
-
BOOLEANARRAY
public static final ReturnType<boolean[]> BOOLEANARRAY
BOOLEANARRAY return type.
-
INTEGER
public static final ReturnType<Long> INTEGER
INTEGER return type.
-
DOUBLE
public static final ReturnType<Double> DOUBLE
DOUBLE return type.
-
STRING
public static final ReturnType<String> STRING
STRING return type.
-
ARRAY
public static final ReturnType<String[]> ARRAY
ARRAY return type.
-
DATATYPE
public static final ReturnType<DataType> DATATYPE
DATATYPE return type.
-
STRINGPAIR
public static final ReturnType<KeyValue<String,String>> STRINGPAIR
STRINGPAIR return type.
-
ENCODING
public static final ReturnType<EncodingType> ENCODING
ENCODING return type.
-
OBJECT
public static final ReturnType<RedisObject> OBJECT
OBJECT return type.
-
-
Method Detail
-
readFrom
public C readFrom(RESPReader reader)
-
-