Package redis.clients.jedis
Enum RedisProtocol
- java.lang.Object
-
- java.lang.Enum<RedisProtocol>
-
- redis.clients.jedis.RedisProtocol
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RedisProtocol>
public enum RedisProtocol extends java.lang.Enum<RedisProtocol>
RedisProtocol compatibility enum for Valkey GLIDE wrapper. Represents different Redis protocol versions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedisProtocolgetDefault()glide.api.models.configuration.ProtocolVersiontoGlideProtocol()Convert to GLIDE ProtocolVersion.static RedisProtocolvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RedisProtocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESP2
public static final RedisProtocol RESP2
-
RESP3
public static final RedisProtocol RESP3
-
-
Method Detail
-
values
public static RedisProtocol[] 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 (RedisProtocol c : RedisProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RedisProtocol 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
-
getDefault
public static RedisProtocol getDefault()
-
toGlideProtocol
public glide.api.models.configuration.ProtocolVersion toGlideProtocol()
Convert to GLIDE ProtocolVersion.
-
-