@ManagedResource(description="Service Registration Route policy") public class ServiceRegistrationRoutePolicy extends RoutePolicySupport implements CamelContextAware
log
shutdown, 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, suspendRoute
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ServiceRegistrationRoutePolicy()
public ServiceRegistrationRoutePolicy(ServiceRegistry.Selector serviceRegistrySelector)
public ServiceRegistrationRoutePolicy(ServiceRegistry serviceRegistry, ServiceRegistry.Selector serviceRegistrySelector)
public CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class RoutePolicySupport
Exception
ServiceSupport.doStop()
public void onStart(Route route)
RoutePolicy
Route
is being startedonStart
in interface RoutePolicy
onStart
in class RoutePolicySupport
route
- the route being startedpublic void onStop(Route route)
RoutePolicy
Route
is being stoppedonStop
in interface RoutePolicy
onStop
in class RoutePolicySupport
route
- the route being stoppedpublic void onSuspend(Route route)
RoutePolicy
Route
is being suspendedonSuspend
in interface RoutePolicy
onSuspend
in class RoutePolicySupport
route
- the route being suspendedpublic void onResume(Route route)
RoutePolicy
Route
is being resumedonResume
in interface RoutePolicy
onResume
in class RoutePolicySupport
route
- the route being resumedApache Camel