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

## Class FirstElementConnectionLoadBalancingPolicy

- java.lang.Object
- - org.apache.activemq.artemis.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy

- All Implemented Interfaces:
    ConnectionLoadBalancingPolicy

      public final class FirstElementConnectionLoadBalancingPolicy
      extends Object
      implements ConnectionLoadBalancingPolicy

  A `select(int)` always returns 0.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FirstElementConnectionLoadBalancingPolicy()`

  - ### Method Summary

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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FirstElementConnectionLoadBalancingPolicy

          public FirstElementConnectionLoadBalancingPolicy()

  - ### Method Detail

    - #### select

          public int select(int max)

      Description copied from interface: `ConnectionLoadBalancingPolicy`
      Returns the selected index according to the policy implementation.
      Specified by:
        `select` in interface `ConnectionLoadBalancingPolicy`
      Parameters:
        `max` - param is ignored
      Returns:
        0

Copyright © 2017 The Apache Software Foundation. All rights reserved.