
net.spy.memcached.vbucket.config.Config Maven / Gradle / Ivy
package net.spy.memcached.vbucket.config;
import java.util.List;
import net.spy.memcached.HashAlgorithm;
public interface Config {
// Config access
int getReplicasCount();
int getVbucketsCount();
int getServersCount();
HashAlgorithm getHashAlgorithm();
String getServer(int serverIndex);
// VBucket access
int getVbucketByKey(String key);
int getMaster(int vbucketIndex);
int getReplica(int vbucketIndex, int replicaIndex);
int foundIncorrectMaster(int vbucket, int wrongServer);
ConfigDifference compareTo(Config config);
List getServers();
List getVbuckets();
ConfigType getConfigType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy