ConnectionLoadBalancingPolicy (ActiveMQ Artemis Web 1.1.0.wildfly-010 API)
Date: 2015-12-18

org.apache.activemq.artemis.api.core.client.loadbalance

## Interface ConnectionLoadBalancingPolicy

- All Known Implementing Classes:
    FirstElementConnectionLoadBalancingPolicy, RandomConnectionLoadBalancingPolicy, RandomStickyConnectionLoadBalancingPolicy, RoundRobinConnectionLoadBalancingPolicy

      public interface ConnectionLoadBalancingPolicy

  A ConnectionLoadBalancingPolicy defines a policy to load balance between connections.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `select(int max)` Returns the selected index according to the policy implementation.

- - ### Method Detail

    - #### select

          int select(int max)

      Returns the selected index according to the policy implementation.
      Parameters:
        `max` - maximum position index that can be selected

Copyright © 2015. All rights reserved.