Object - http : LoadBalancerRule

LoadBalancerRule provides a required interfaces to implement different algorithms.

Methods

Provides an HTTP client which is chosen according to the algorithm.

getNextClient

(Client?[] loadBalanceCallerActionsArray)

returns Client | ClientError

Provides an HTTP client which is chosen according to the algorithm.

Parameters

  • loadBalanceCallerActionsArray Client?[]
  • Array of HTTP clients which needs to be load balanced

  • Return Type

    (Client | ClientError)
  • Chosen Client from the algorithm or an http:ClientError for the failure in the algorithm implementation