redis.clients.jedis.args.ClusterFailoverOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.args;
import redis.clients.jedis.util.SafeEncoder;
/**
* Enumeration of cluster failover options.
*
* Used by {@link redis.clients.jedis.commands.ClusterCommands#clusterFailover(ClusterFailoverOption)}.
*/
public enum ClusterFailoverOption implements Rawable {
FORCE, TAKEOVER;
private final byte[] raw;
private ClusterFailoverOption() {
this.raw = SafeEncoder.encode(name());
}
@Override
public byte[] getRaw() {
return raw;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy