Interface ShardRoutingStrategy
public interface ShardRoutingStrategy
Transport-neutral shard routing strategy.
Implementations must be thread-safe. Routing may consider candidate health supplied by HA/HP selectors, but this interface does not perform transport invocation or registry discovery.
-
Method Summary
Modifier and TypeMethodDescriptionRoutes a key to one candidate.
-
Method Details
-
route
Routes a key to one candidate.- Parameters:
key- shard keycandidates- healthy candidates after caller-side filtering- Returns:
- selected route
-