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