Class FirstElementConnectionLoadBalancingPolicy
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy
-
- All Implemented Interfaces:
ConnectionLoadBalancingPolicy
public final class FirstElementConnectionLoadBalancingPolicy extends java.lang.Object implements ConnectionLoadBalancingPolicy
Aselect(int)
always returns 0.
-
-
Constructor Summary
Constructors Constructor Description FirstElementConnectionLoadBalancingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
select(int max)
Returns the selected index according to the policy implementation.
-
-
-
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 interfaceConnectionLoadBalancingPolicy
- Parameters:
max
- param is ignored- Returns:
- 0
-
-