Interface ILoadBalancingStrategy
Strategy for determining the iteration order of a MessageHandler list.
Namespace: Steeltoe.Integration.Dispatcher
Assembly: Steeltoe.Integration.Abstractions.dll
Syntax
public interface ILoadBalancingStrategy
Methods
| Edit this page View SourceGetNextHandlerStartIndex(IMessage, List<IMessageHandler>)
Gets the next index to be used in selecting a handler from the provided list of handlers
Declaration
int GetNextHandlerStartIndex(IMessage message, List<IMessageHandler> handlers)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | the message to be processed |
List<IMessageHandler> | handlers | the current list of handlers |
Returns
Type | Description |
---|---|
System.Int32 | an index into the handler list at which to start load balancing |