public interface IShardResolutionStrategy
Modifier and Type | Method and Description |
---|---|
String |
generateShardIdFor(Object entity,
Object owner)
Generate a shard id for the specified entity
|
String |
metadataShardIdFor(Object entity)
The shard id for the server that contains the metadata (such as the HiLo documents)
for the given entity
|
List<String> |
potentialShardsFor(ShardRequestData requestData)
Selects the shard ids appropriate for the specified data.
|
String generateShardIdFor(Object entity, Object owner)
String metadataShardIdFor(Object entity)
List<String> potentialShardsFor(ShardRequestData requestData)
Copyright © 2016. All Rights Reserved.