Interface RequestDispatchStrategy
- All Known Implementing Classes:
RoundRobinDispatchStrategy
public interface RequestDispatchStrategy
Implementations must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionintdeterminePartition(BrokerTopologyManager topologyManager) static RequestDispatchStrategyReturns a dispatch strategy which will perform a stateful round robin between the partitions.
-
Method Details
-
determinePartition
- Returns:
BrokerClusterState.PARTITION_ID_NULLif no partition can be determined
-
roundRobin
Returns a dispatch strategy which will perform a stateful round robin between the partitions.
-