Table of Contents

Interface ILoadBalancingStrategy

Namespace
Steeltoe.Integration.Dispatcher
Assembly
Steeltoe.Integration.Abstractions.dll

Strategy for determining the iteration order of a MessageHandler list.

[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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 IMessage

the 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