@Deprecated public class Sharded<R,S extends ShardInfo<R>> extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
DEFAULT_KEY_TAG_PATTERN
Deprecated.
|
static int |
DEFAULT_WEIGHT
Deprecated.
|
Constructor and Description |
---|
Sharded(List<S> shards)
Deprecated.
|
Sharded(List<S> shards,
Hashing algo)
Deprecated.
|
Sharded(List<S> shards,
Hashing algo,
Pattern tagPattern)
Deprecated.
|
Sharded(List<S> shards,
Pattern tagPattern)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collection<S> |
getAllShardInfo()
Deprecated.
|
Collection<R> |
getAllShards()
Deprecated.
|
String |
getKeyTag(String key)
Deprecated.
A key tag is a special pattern inside a key that, if preset, is the only part of the key hashed
in order to select the server for this key.
|
R |
getShard(byte[] key)
Deprecated.
|
R |
getShard(String key)
Deprecated.
|
S |
getShardInfo(byte[] key)
Deprecated.
|
S |
getShardInfo(String key)
Deprecated.
|
public static final int DEFAULT_WEIGHT
public static final Pattern DEFAULT_KEY_TAG_PATTERN
public R getShard(byte[] key)
public S getShardInfo(byte[] key)
public String getKeyTag(String key)
key
- public Collection<S> getAllShardInfo()
public Collection<R> getAllShards()
Copyright © 2022. All rights reserved.