Package org.apache.activemq.artemis.api.core.client.loadbalance
package org.apache.activemq.artemis.api.core.client.loadbalance
-
ClassDescriptionA ConnectionLoadBalancingPolicy defines a policy to load balance between connections.A
FirstElementConnectionLoadBalancingPolicy.select(int)
always returns 0.RandomConnectionLoadBalancingPolicy.select(int)
returns a (pseudo) random integer between0
(inclusive) andmax
(exclusive).RandomConnectionLoadBalancingPolicy.select(int)
chooses a the initial node randomly then subsequent requests return the same nodeRoundRobinConnectionLoadBalancingPolicy corresponds to a round-robin load-balancing policy.