public class RibbonServiceLoadBalancer
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.cloud.ServiceDiscoveryAware, org.apache.camel.cloud.ServiceFilterAware, org.apache.camel.cloud.ServiceLoadBalancer
Constructor and Description |
---|
RibbonServiceLoadBalancer(RibbonConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
org.apache.camel.cloud.ServiceDiscovery |
getServiceDiscovery() |
org.apache.camel.cloud.ServiceFilter |
getServiceFilter() |
<T> T |
process(String serviceName,
org.apache.camel.cloud.ServiceLoadBalancerFunction<T> request) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setServiceDiscovery(org.apache.camel.cloud.ServiceDiscovery serviceDiscovery) |
void |
setServiceFilter(org.apache.camel.cloud.ServiceFilter serviceFilter) |
public RibbonServiceLoadBalancer(RibbonConfiguration configuration)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.cloud.ServiceDiscovery getServiceDiscovery()
getServiceDiscovery
in interface org.apache.camel.cloud.ServiceDiscoveryAware
public void setServiceDiscovery(org.apache.camel.cloud.ServiceDiscovery serviceDiscovery)
setServiceDiscovery
in interface org.apache.camel.cloud.ServiceDiscoveryAware
public org.apache.camel.cloud.ServiceFilter getServiceFilter()
getServiceFilter
in interface org.apache.camel.cloud.ServiceFilterAware
public void setServiceFilter(org.apache.camel.cloud.ServiceFilter serviceFilter)
setServiceFilter
in interface org.apache.camel.cloud.ServiceFilterAware
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.ServiceSupport
Exception
Apache Camel