public abstract class DefaultServiceCallProcessorFactory<C,S extends ServiceCallServer> extends Object implements ProcessorFactory
Constructor and Description |
---|
DefaultServiceCallProcessorFactory() |
public DefaultServiceCallProcessorFactory()
public Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> definition, boolean mandatory) throws Exception
ProcessorFactory
createChildProcessor
in interface ProcessorFactory
routeContext
- the route contextdefinition
- the definition which represents the processormandatory
- whether or not the child is mandatoryException
- can be thrown if error creating the processorpublic Processor createProcessor(RouteContext routeContext, ProcessorDefinition<?> definition) throws Exception
ProcessorFactory
createProcessor
in interface ProcessorFactory
routeContext
- the route contextdefinition
- the definition which represents the processorException
- can be thrown if error creating the processorprotected Processor createProcessor(RouteContext routeContext, ServiceCallDefinition definition, C cfg) throws Exception
Exception
protected Map<String,String> configureProperties(RouteContext routeContext, ServiceCallConfigurationDefinition config, ServiceCallConfigurationDefinition configRef) throws Exception
Exception
protected ServiceCallLoadBalancer configureLoadBalancer(C conf, RouteContext routeContext, ServiceCallDefinition sd) throws Exception
Exception
protected ServiceCallLoadBalancer configureLoadBalancer(C conf, RouteContext routeContext, ServiceCallConfigurationDefinition config) throws Exception
Exception
protected ServiceCallServerListStrategy configureServerListStrategy(C conf, RouteContext routeContext, ServiceCallDefinition sd) throws Exception
Exception
protected ServiceCallServerListStrategy configureServerListStrategy(C conf, RouteContext routeContext, ServiceCallConfigurationDefinition config) throws Exception
Exception
protected Optional<ServiceCallLoadBalancer> builtInLoadBalancer(C conf, String name) throws Exception
Exception
protected Optional<ServiceCallServerListStrategy> builtInServerListStrategy(C conf, String name) throws Exception
Exception
protected DefaultServiceCallProcessor createProcessor(String name, String component, String uri, ExchangePattern mep, C conf, Map<String,String> properties) throws Exception
Exception
protected abstract C createConfiguration(RouteContext routeContext) throws Exception
Exception
protected ServiceCallLoadBalancer<S> createDefaultLoadBalancer(C conf) throws Exception
Exception
protected ServiceCallServerListStrategy<S> createDefaultServerListStrategy(C conf) throws Exception
Exception
Apache Camel