public class CamelSpringCloudServiceLoadBalancer
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.cloud.ServiceLoadBalancer
| Modifier and Type | Class and Description |
|---|---|
static interface |
CamelSpringCloudServiceLoadBalancer.LoadBalancerClientAdapter |
| Constructor and Description |
|---|
CamelSpringCloudServiceLoadBalancer(org.springframework.cloud.client.loadbalancer.LoadBalancerClient loadBalancerClient,
Optional<CamelSpringCloudServiceLoadBalancer.LoadBalancerClientAdapter> clientAdapter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
<T> T |
process(String serviceName,
org.apache.camel.cloud.ServiceLoadBalancerFunction<T> function) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CamelSpringCloudServiceLoadBalancer(org.springframework.cloud.client.loadbalancer.LoadBalancerClient loadBalancerClient,
Optional<CamelSpringCloudServiceLoadBalancer.LoadBalancerClientAdapter> clientAdapter)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwareprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionApache Camel