Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoadBalancer

LoadBalancer allows you to send operations to one of a number of endpoints (Members). It is up to the implementation to use different load balancing policies.

If Client is configured with ClientNetworkConfig.smartRouting, only the operations that are not key based will be routed to the endpoint returned by the LoadBalancer. If it is not, the LoadBalancer will not be used.

Hierarchy

  • LoadBalancer

Implemented by

Index

Methods

initLoadBalancer

  • Initializes the LoadBalancer.

    Parameters

    • cluster: Cluster

      the Cluster this LoadBalancer uses to select members from.

    • config: ClientConfig

      the ClientConfig.

    Returns void

next

  • Returns the next member to route to.

    Returns Member

    Returns the next member or null if no member is available

Generated using TypeDoc