Interface ILoadBalancingStrategy
- Namespace
- Steeltoe.Integration.Dispatcher
- Assembly
- Steeltoe.Integration.Abstractions.dll
Strategy for determining the iteration order of a MessageHandler list.
public interface ILoadBalancingStrategy
Methods
GetNextHandlerStartIndex(IMessage, List<IMessageHandler>)
Gets the next index to be used in selecting a handler from the provided list of handlers
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