public class EventDrivenConsumerRoute extends DefaultRoute
DefaultRoute which starts with an
Event Driven Consumer
Use the API from CamelContext to control the lifecycle of a route,
such as starting and stopping using the CamelContext.startRoute(String)
and CamelContext.stopRoute(String) methods.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspendingGROUP_PROPERTY, ID_PROPERTY, PARENT_PROPERTY| Constructor and Description |
|---|
EventDrivenConsumerRoute(RouteContext routeContext,
Endpoint endpoint,
Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addServices(List<Service> services)
Factory method to lazily create the complete list of services required for this route
such as adding the processor or consumer
|
Consumer |
getConsumer()
Gets the inbound
Consumer |
Processor |
getProcessor() |
Navigate<Processor> |
navigate()
Returns a navigator to navigate this route by navigating all the
Processors. |
boolean |
supportsSuspension()
Whether or not the route supports suspension (suspend and resume)
|
String |
toString() |
addService, doShutdown, doStart, doStop, getEndpoint, getId, getProperties, getRouteContext, getServices, onStartingServices, start, stop, warmUpdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, suspendpublic EventDrivenConsumerRoute(RouteContext routeContext, Endpoint endpoint, Processor processor)
public String toString()
toString in class DefaultRoutepublic Processor getProcessor()
protected void addServices(List<Service> services) throws Exception
addServices in class DefaultRouteExceptionpublic Navigate<Processor> navigate()
RouteProcessors.Processor.public Consumer getConsumer()
RouteConsumerpublic boolean supportsSuspension()
RouteApache Camel