Package com.redis.lettucemod.protocol
Enum JsonCommandType
- java.lang.Object
-
- java.lang.Enum<JsonCommandType>
-
- com.redis.lettucemod.protocol.JsonCommandType
-
- All Implemented Interfaces:
io.lettuce.core.protocol.ProtocolKeyword,java.io.Serializable,java.lang.Comparable<JsonCommandType>
public enum JsonCommandType extends java.lang.Enum<JsonCommandType> implements io.lettuce.core.protocol.ProtocolKeyword
RedisJSON commands.- Author:
- Julien Ruaux
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()static JsonCommandTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsonCommandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEL
public static final JsonCommandType DEL
-
GET
public static final JsonCommandType GET
-
MGET
public static final JsonCommandType MGET
-
SET
public static final JsonCommandType SET
-
TYPE
public static final JsonCommandType TYPE
-
NUMINCRBY
public static final JsonCommandType NUMINCRBY
-
NUMMULTBY
public static final JsonCommandType NUMMULTBY
-
STRAPPEND
public static final JsonCommandType STRAPPEND
-
STRLEN
public static final JsonCommandType STRLEN
-
ARRAPPEND
public static final JsonCommandType ARRAPPEND
-
ARRINDEX
public static final JsonCommandType ARRINDEX
-
ARRINSERT
public static final JsonCommandType ARRINSERT
-
ARRLEN
public static final JsonCommandType ARRLEN
-
ARRPOP
public static final JsonCommandType ARRPOP
-
ARRTRIM
public static final JsonCommandType ARRTRIM
-
OBJKEYS
public static final JsonCommandType OBJKEYS
-
OBJLEN
public static final JsonCommandType OBJLEN
-
-
Method Detail
-
values
public static JsonCommandType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonCommandType c : JsonCommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonCommandType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin interfaceio.lettuce.core.protocol.ProtocolKeyword
-
-