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

io.craft.atom.redis.spi.Sharded Maven / Gradle / Ivy

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

import io.craft.atom.redis.api.RedisCommand;

import java.util.List;


/**
 * Implements this interface to provide custom sharded algorithm.
 * 
 * @author mindwind
 * @version 1.0, Jun 25, 2013
 */
public interface Sharded {

	/**
	 * @param shardkey
	 * @return redis shard by shardkey
	 */
	R shard(String shardkey);
	
	/**
	 * @return all redis shards.
	 */
	List shards();
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy