Пример #1
0
 public RoutingBuilder createBuilder(
     RequestP2PConfiguration requestP2PConfiguration, RoutingConfiguration routingConfiguration) {
   RoutingBuilder routingBuilder = new RoutingBuilder();
   routingBuilder.setParallel(routingConfiguration.getParallel());
   routingBuilder.setMaxNoNewInfo(
       routingConfiguration.getMaxNoNewInfo(requestP2PConfiguration.getMinimumResults()));
   routingBuilder.setMaxDirectHits(routingConfiguration.getMaxDirectHits());
   routingBuilder.setMaxFailures(routingConfiguration.getMaxFailures());
   routingBuilder.setMaxSuccess(routingConfiguration.getMaxSuccess());
   return routingBuilder;
 }
Пример #2
0
 private RoutingBuilder createBuilder(
     RequestP2PConfiguration requestP2PConfiguration, RoutingConfiguration routingConfiguration) {
   RoutingBuilder routingBuilder = new RoutingBuilder();
   routingBuilder.setParallel(routingConfiguration.getParallel());
   routingBuilder.setMaxNoNewInfo(
       routingConfiguration.getMaxNoNewInfo(requestP2PConfiguration.getMinimumResults()));
   routingBuilder.setMaxDirectHits(Integer.MAX_VALUE);
   routingBuilder.setMaxFailures(routingConfiguration.getMaxFailures());
   routingBuilder.setMaxSuccess(routingConfiguration.getMaxSuccess());
   routingBuilder.setForceRoutingOnlyToSelf(forceRoutingOnlyToSelf);
   return routingBuilder;
 }