Options
All
  • Public
  • Public/Protected
  • All
Menu

A LoadBalancer selects one of the endpoints(Members) for the next send operation that be directed to many endpoints. It is up to the implementation to use different load balancing policies.

If the client is a smart client configured with ClientNetworkConfig.smartRouting, only the operations that are not key based will be routed via LoadBalancer. If the client is not a smart client, the LoadBalancer will not be used.

Hierarchy

  • LoadBalancer

Implemented by

Index

Methods

  • canGetNextDataMember(): boolean
  • Returns whether this instance supports getting data members through a call to nextDataMember.

    deprecated

    Since 5.0, the method is unused

    Returns boolean

    Returns true if this load balancer can get a data member.

  • Initializes the LoadBalancer.

    Parameters

    • cluster: Cluster

      the Cluster this LoadBalancer uses to select members from.

    • config: ClientConfig

      the ClientConfig.

    Returns void

  • Returns the next member to route to.

    Returns Member

    Returns the next member or null if no member is available

  • Returns the next data member to route to.

    deprecated

    Since 5.0, the method is unused

    Returns Member

    Returns the next data member or null if no data member is available

Generated using TypeDoc