Package io.lettuce.core.models.role
Class RoleParser
- java.lang.Object
-
- io.lettuce.core.models.role.RoleParser
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,RedisReplicaInstance.State>
REPLICA_STATE_MAPPING
protected static Map<String,RedisInstance.Role>
ROLE_MAPPING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RedisInstance
parse(List<?> roleOutput)
Parse the output of the Redis ROLE command and convert to a RedisInstance.
-
-
-
Field Detail
-
ROLE_MAPPING
protected static final Map<String,RedisInstance.Role> ROLE_MAPPING
-
REPLICA_STATE_MAPPING
protected static final Map<String,RedisReplicaInstance.State> REPLICA_STATE_MAPPING
-
-
Method Detail
-
parse
public static RedisInstance parse(List<?> roleOutput)
Parse the output of the Redis ROLE command and convert to a RedisInstance.- Parameters:
roleOutput
- output of the Redis ROLE command.- Returns:
- RedisInstance
-
-