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 Type
    Method
    Description
    route(ShardKey key, List<ObjectRef> candidates)
    Routes a key to one candidate.
  • Method Details

    • route

      ShardRoute route(ShardKey key, List<ObjectRef> candidates)
      Routes a key to one candidate.
      Parameters:
      key - shard key
      candidates - healthy candidates after caller-side filtering
      Returns:
      selected route