@Test public void balanceDefault() { testSubject.balance(new TrackingEventProcessor("testProcessor", "default"), "default").perform(); }
public LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName) { LoadBalancingStrategy strategy = strategyRepository.findByName(strategyName); io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory factory = factories.getOrDefault(strategy.factoryBean(), NoLoadBalanceStrategy::new); return factory.create().balance(processor); }
ProcessorLoadBalanceStrategy { public LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName) { LoadBalancingStrategy strategy = strategyRepository.findByName(strategyName); io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory factory = factories.getOrDefault(strategy.factoryBean(), NoLoadBalanceStrategy::new); return factory.create().balance(processor); } }
ProcessorLoadBalanceStrategy { public LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName) { LoadBalancingStrategy strategy = strategyRepository.findByName(strategyName); io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory factory = factories.getOrDefault(strategy.factoryBean(), NoLoadBalanceStrategy::new); return factory.create().balance(processor); } ProcessorLoadBalanceStrategy(
            LoadBalanceStrategyHolder strategyRepository,
            Map<String, io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory> factories); }
ProcessorLoadBalanceStrategy { public LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName) { LoadBalancingStrategy strategy = strategyRepository.findByName(strategyName); io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory factory = factories.getOrDefault(strategy.factoryBean(), NoLoadBalanceStrategy::new); return factory.create().balance(processor); } ProcessorLoadBalanceStrategy(
            LoadBalanceStrategyHolder strategyRepository,
            Map<String, io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory> factories); LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName); }
ProcessorLoadBalanceStrategy { public LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName) { LoadBalancingStrategy strategy = strategyRepository.findByName(strategyName); io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory factory = factories.getOrDefault(strategy.factoryBean(), NoLoadBalanceStrategy::new); return factory.create().balance(processor); } ProcessorLoadBalanceStrategy(
            LoadBalanceStrategyHolder strategyRepository,
            Map<String, io.axoniq.axonserver.component.processor.balancing.LoadBalancingStrategy.Factory> factories); LoadBalancingOperation balance(TrackingEventProcessor processor, String strategyName);  }