Class DynamicRouterRecipientListHelper

java.lang.Object
org.apache.camel.component.dynamicrouter.routing.DynamicRouterRecipientListHelper

public final class DynamicRouterRecipientListHelper extends Object
Utility class that creates a RecipientList Processor based on a DynamicRouterConfiguration.
  • Method Details

    • createProcessor

      public static org.apache.camel.Processor createProcessor(org.apache.camel.CamelContext camelContext, DynamicRouterConfiguration cfg, BiFunction<org.apache.camel.CamelContext,org.apache.camel.Expression,org.apache.camel.processor.RecipientList> recipientListSupplier)
      Create and configure the RecipientList Processor. The returned recipient list will be started.
      Parameters:
      camelContext - the RecipientList to configure
      cfg - the DynamicRouterConfiguration
      Returns:
      the configured RecipientList Processor