@Metadata(label="eip,routing") public class ServiceCallDefinition extends NoOutputDefinition<ServiceCallDefinition>
inheritErrorHandler, log
Constructor and Description |
---|
ServiceCallDefinition() |
Modifier and Type | Method and Description |
---|---|
ConsulConfigurationDefinition |
consulConfiguration()
Configures the Service Call EIP using Consul
Use end when configuration is complete, to return back to the Service Call EIP.
|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
DnsConfigurationDefinition |
dnsConfiguration()
Configures the Service Call EIP using Dns
Use end when configuration is complete, to return back to the Service Call EIP.
|
EtcdConfigurationDefinition |
etcdConfiguration()
Configures the Service Call EIP using Etcd
Use end when configuration is complete, to return back to the Service Call EIP.
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
ServiceCallLoadBalancer |
getLoadBalancer() |
String |
getLoadBalancerRef() |
String |
getName() |
ExchangePattern |
getPattern() |
ServiceCallServerListStrategy |
getServerListStrategy() |
String |
getServerListStrategyRef() |
ServiceCallConfigurationDefinition |
getServiceCallConfiguration() |
String |
getServiceCallConfigurationRef() |
String |
getUri() |
KubernetesConfigurationDefinition |
kubernetesConfiguration()
Configures the Service Call EIP using Kubernetes
Use end when configuration is complete, to return back to the Service Call EIP.
|
ServiceCallDefinition |
loadBalancer(ServiceCallLoadBalancer loadBalancer)
Sets a custom
ServiceCallLoadBalancer to use. |
ServiceCallDefinition |
loadBalancer(String loadBalancerRef)
Sets a reference to a custom
ServiceCallLoadBalancer to use. |
ServiceCallDefinition |
name(String name)
Sets the name of the service to use
|
ServiceCallDefinition |
pattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
RibbonConfigurationDefinition |
ribbonConfiguration()
Configures the Service Call EIP using Ribbon
Use end when configuration is complete, to return back to the Service Call EIP.
|
ServiceCallDefinition |
serverListStrategy(ServiceCallServerListStrategy serverListStrategy)
Sets a custom
ServiceCallServerListStrategy to use. |
ServiceCallDefinition |
serverListStrategy(String serverListStrategyRef)
Sets a reference to a custom
ServiceCallServerListStrategy to use. |
ServiceCallDefinition |
serviceCallConfiguration(ServiceCallConfigurationDefinition configuration)
Configures the ServiceCall using the given configuration
|
ServiceCallDefinition |
serviceCallConfiguration(String ref)
Refers to a ServiceCall configuration to use
|
void |
setLoadBalancer(ServiceCallLoadBalancer loadBalancer) |
void |
setLoadBalancerRef(String loadBalancerRef)
Sets a reference to a custom
ServiceCallLoadBalancer to use. |
void |
setName(String name) |
void |
setPattern(ExchangePattern pattern) |
void |
setServerListStrategy(ServiceCallServerListStrategy serverListStrategy) |
void |
setServerListStrategyRef(String serverListStrategyRef)
Sets a reference to a custom
ServiceCallServerListStrategy to use. |
void |
setServiceCallConfiguration(ServiceCallConfigurationDefinition serviceCallConfiguration) |
void |
setServiceCallConfigurationRef(String serviceCallConfigurationRef)
Refers to a ServiceCall configuration to use
|
void |
setUri(String uri)
The uri of the endpoint to send to.
|
String |
toString() |
ServiceCallDefinition |
uri(String uri)
Sets the uri of the service to use
|
getOutputs, isOutputSupported
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
public ServiceCallDefinition()
public String getLabel()
ProcessorDefinition
getLabel
in interface NamedNode
getLabel
in class ProcessorDefinition<ServiceCallDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ServiceCallDefinition>
Exception
public ServiceCallDefinition pattern(ExchangePattern pattern)
ExchangePattern
used to invoke this endpointpublic ServiceCallDefinition name(String name)
public ServiceCallDefinition uri(String uri)
public KubernetesConfigurationDefinition kubernetesConfiguration()
public RibbonConfigurationDefinition ribbonConfiguration()
public ConsulConfigurationDefinition consulConfiguration()
public EtcdConfigurationDefinition etcdConfiguration()
public DnsConfigurationDefinition dnsConfiguration()
public ServiceCallDefinition serviceCallConfiguration(ServiceCallConfigurationDefinition configuration)
public ServiceCallDefinition serviceCallConfiguration(String ref)
public ServiceCallDefinition loadBalancer(String loadBalancerRef)
ServiceCallLoadBalancer
to use.public ServiceCallDefinition loadBalancer(ServiceCallLoadBalancer loadBalancer)
ServiceCallLoadBalancer
to use.public ServiceCallDefinition serverListStrategy(String serverListStrategyRef)
ServiceCallServerListStrategy
to use.public ServiceCallDefinition serverListStrategy(ServiceCallServerListStrategy serverListStrategy)
ServiceCallServerListStrategy
to use.public ExchangePattern getPattern()
public void setPattern(ExchangePattern pattern)
public ServiceCallConfigurationDefinition getServiceCallConfiguration()
public void setServiceCallConfiguration(ServiceCallConfigurationDefinition serviceCallConfiguration)
public String getServiceCallConfigurationRef()
public void setServiceCallConfigurationRef(String serviceCallConfigurationRef)
public void setUri(String uri)
SimpleLanguage
expression.public String getLoadBalancerRef()
public void setLoadBalancerRef(String loadBalancerRef)
ServiceCallLoadBalancer
to use.public ServiceCallLoadBalancer getLoadBalancer()
public void setLoadBalancer(ServiceCallLoadBalancer loadBalancer)
public String getServerListStrategyRef()
public void setServerListStrategyRef(String serverListStrategyRef)
ServiceCallServerListStrategy
to use.public ServiceCallServerListStrategy getServerListStrategy()
public void setServerListStrategy(ServiceCallServerListStrategy serverListStrategy)
Apache Camel