Class RoundRobinLoadBalancingStrategy
- Namespace
- Steeltoe.Integration.Dispatcher
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public class RoundRobinLoadBalancingStrategy : ILoadBalancingStrategy
- Inheritance
-
RoundRobinLoadBalancingStrategy
- Implements
- Inherited Members
Methods
GetNextHandlerStartIndex(IMessage, List<IMessageHandler>)
Gets the next index to be used in selecting a handler from the provided list of handlers
public int GetNextHandlerStartIndex(IMessage message, List<IMessageHandler> handlers)
Parameters
message
IMessagethe message to be processed
handlers
List<IMessageHandler>the current list of handlers
Returns
- int
an index into the handler list at which to start load balancing