@ManagedResource(description="Service Registration Route policy") public class ServiceRegistrationRoutePolicy extends RoutePolicySupport implements CamelContextAware
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
ServiceRegistrationRoutePolicy() |
ServiceRegistrationRoutePolicy(ServiceRegistry.Selector serviceRegistrySelector) |
ServiceRegistrationRoutePolicy(ServiceRegistry serviceRegistry,
ServiceRegistry.Selector serviceRegistrySelector) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart()
Implementations override this method to support customized start/stop.
|
CamelContext |
getCamelContext()
Get the
CamelContext |
void |
onResume(Route route)
Callback invoked when the
Route is being resumed |
void |
onStart(Route route)
Callback invoked when the
Route is being started |
void |
onStop(Route route)
Callback invoked when the
Route is being stopped |
void |
onSuspend(Route route)
Callback invoked when the
Route is being suspended |
void |
setCamelContext(CamelContext camelContext)
Injects the
CamelContext |
doStop, getExceptionHandler, handleException, onExchangeBegin, onExchangeDone, onInit, onRemove, resumeOrStartConsumer, resumeRoute, setExceptionHandler, startConsumer, startRoute, stopConsumer, stopRoute, stopRoute, stopRouteAsync, suspendOrStopConsumer, suspendRoute, suspendRoutedoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ServiceRegistrationRoutePolicy()
public ServiceRegistrationRoutePolicy(ServiceRegistry.Selector serviceRegistrySelector)
public ServiceRegistrationRoutePolicy(ServiceRegistry serviceRegistry, ServiceRegistry.Selector serviceRegistrySelector)
public CamelContext getCamelContext()
CamelContextAwareCamelContextgetCamelContext in interface CamelContextAwarepublic void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContextsetCamelContext in interface CamelContextAwarecamelContext - the Camel contextpublic void doStart() throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class RoutePolicySupportExceptionServiceSupport.doStop()public void onStart(Route route)
RoutePolicyRoute is being startedonStart in interface RoutePolicyonStart in class RoutePolicySupportroute - the route being startedpublic void onStop(Route route)
RoutePolicyRoute is being stoppedonStop in interface RoutePolicyonStop in class RoutePolicySupportroute - the route being stoppedpublic void onSuspend(Route route)
RoutePolicyRoute is being suspendedonSuspend in interface RoutePolicyonSuspend in class RoutePolicySupportroute - the route being suspendedpublic void onResume(Route route)
RoutePolicyRoute is being resumedonResume in interface RoutePolicyonResume in class RoutePolicySupportroute - the route being resumedApache Camel