@ManagedResource(description="Clustered Route policy using")
public final class ClusteredRoutePolicy
extends org.apache.camel.support.RoutePolicySupport
implements org.apache.camel.CamelContextAware
| Modifier and Type | Method and Description |
|---|---|
void |
doShutdown() |
void |
doStart() |
static ClusteredRoutePolicy |
forNamespace(org.apache.camel.cluster.CamelClusterService.Selector selector,
String namespace) |
static ClusteredRoutePolicy |
forNamespace(org.apache.camel.cluster.CamelClusterService service,
String namespace) |
static ClusteredRoutePolicy |
forNamespace(org.apache.camel.CamelContext camelContext,
org.apache.camel.cluster.CamelClusterService.Selector selector,
String namespace) |
static ClusteredRoutePolicy |
forNamespace(org.apache.camel.CamelContext camelContext,
String namespace) |
static ClusteredRoutePolicy |
forNamespace(String namespace) |
org.apache.camel.CamelContext |
getCamelContext() |
Duration |
getInitialDelay() |
boolean |
isLeader() |
void |
onInit(org.apache.camel.Route route) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setInitialDelay(Duration initialDelay) |
controller, doStop, getExceptionHandler, handleException, onExchangeBegin, onExchangeDone, onRemove, onResume, onStart, onStop, onSuspend, resumeOrStartConsumer, resumeRoute, setExceptionHandler, startConsumer, startRoute, stopConsumer, stopRoute, stopRoute, stopRouteAsync, suspendOrStopConsumer, suspendRoute, suspendRoutebuild, doBuild, doFail, doInit, doLifecycleChange, doResume, 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 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.CamelContextAwarepublic Duration getInitialDelay()
public void setInitialDelay(Duration initialDelay)
public void onInit(org.apache.camel.Route route)
onInit in interface org.apache.camel.spi.RoutePolicyonInit in class org.apache.camel.support.RoutePolicySupportpublic void doStart()
throws Exception
doStart in class org.apache.camel.support.RoutePolicySupportExceptionpublic void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.service.BaseServiceException@ManagedAttribute(description="Is this route the master or a slave") public boolean isLeader()
public static ClusteredRoutePolicy forNamespace(org.apache.camel.CamelContext camelContext, org.apache.camel.cluster.CamelClusterService.Selector selector, String namespace) throws Exception
Exceptionpublic static ClusteredRoutePolicy forNamespace(org.apache.camel.CamelContext camelContext, String namespace) throws Exception
Exceptionpublic static ClusteredRoutePolicy forNamespace(org.apache.camel.cluster.CamelClusterService service, String namespace) throws Exception
Exceptionpublic static ClusteredRoutePolicy forNamespace(org.apache.camel.cluster.CamelClusterService.Selector selector, String namespace) throws Exception
Exceptionpublic static ClusteredRoutePolicy forNamespace(String namespace) throws Exception
ExceptionApache Camel