All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.craft.atom.redis.api.MasterSlaveShardedRedis Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package io.craft.atom.redis.api;

import java.util.List;

/**
 * The master slave sharded redis client.
 * 
 * @author mindwind
 * @version 1.0, Jun 25, 2013
 */
public interface MasterSlaveShardedRedis extends ShardedRedisCommand {
	
	/** 
	 * @return all shards
	 */
	List shards();
	
	/**
	 * @param shardkey
	 * @return MasterSlaveRedis instance by shardkey
	 */
	MasterSlaveRedis shard(String shardkey);
	
	/**
	 * Enable all MasterSlaveRedis shards read from slave and write on master.
	 */
	void enableReadSlave();

	
	/**
	 * Disable all MasterSlaveRedis shards read from slave.
	 */
	void disableReadSlave();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy