java.lang.Object
io.lettuce.core.models.role.RoleParser
public class RoleParser extends Object
Parser for Redis ROLE command output.
- Since:
- 3.0
- Author:
- Mark Paluch
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,RedisReplicaInstance.State>REPLICA_STATE_MAPPINGprotected static Map<String,RedisInstance.Role>ROLE_MAPPING -
Method Summary
Modifier and Type Method Description static RedisInstanceparse(List<?> roleOutput)Parse the output of the Redis ROLE command and convert to a RedisInstance.
-
Field Details
-
ROLE_MAPPING
-
REPLICA_STATE_MAPPING
-
-
Method Details
-
parse
Parse the output of the Redis ROLE command and convert to a RedisInstance.- Parameters:
roleOutput- output of the Redis ROLE command.- Returns:
- RedisInstance
-