@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, suspendRoute
doInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
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 Duration getInitialDelay()
public void setInitialDelay(Duration initialDelay)
public void onInit(org.apache.camel.Route route)
onInit
in interface org.apache.camel.spi.RoutePolicy
onInit
in class org.apache.camel.support.RoutePolicySupport
public void doStart() throws Exception
doStart
in class org.apache.camel.support.RoutePolicySupport
Exception
public void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.ServiceSupport
Exception
@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
Exception
public static ClusteredRoutePolicy forNamespace(org.apache.camel.CamelContext camelContext, String namespace) throws Exception
Exception
public static ClusteredRoutePolicy forNamespace(org.apache.camel.cluster.CamelClusterService service, String namespace) throws Exception
Exception
public static ClusteredRoutePolicy forNamespace(org.apache.camel.cluster.CamelClusterService.Selector selector, String namespace) throws Exception
Exception
public static ClusteredRoutePolicy forNamespace(String namespace) throws Exception
Exception
Apache Camel