Class StableHashShardRoutingStrategy

java.lang.Object
org.j7m.middleware.scheduler.StableHashShardRoutingStrategy
All Implemented Interfaces:
org.j7m.middleware.workload.api.ShardRoutingStrategy

public final class StableHashShardRoutingStrategy extends Object implements org.j7m.middleware.workload.api.ShardRoutingStrategy
Stable hash routing strategy for Phase 4 shard metadata.

The strategy is stateless and thread-safe. It does not implement database partitioning or consensus; it simply chooses one candidate from a caller supplied healthy candidate list.

  • Constructor Details

    • StableHashShardRoutingStrategy

      public StableHashShardRoutingStrategy()
      Creates a stateless stable hash routing strategy.
  • Method Details

    • route

      public org.j7m.middleware.workload.api.ShardRoute route(org.j7m.middleware.workload.api.ShardKey key, List<org.j7m.middleware.api.ObjectRef> candidates)
      Specified by:
      route in interface org.j7m.middleware.workload.api.ShardRoutingStrategy