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, suspending
DESCRIPTION_PROPERTY, GROUP_PROPERTY, ID_PROPERTY, PARENT_PROPERTY, REST_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
Processor s. |
boolean |
supportsSuspension()
Whether or not the route supports suspension (suspend and resume)
|
String |
toString() |
addService, doShutdown, doStart, doStop, getDescription, getEndpoint, getId, getProperties, getRouteContext, getServices, onStartingServices, start, stop, warmUp
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, suspend
public EventDrivenConsumerRoute(RouteContext routeContext, Endpoint endpoint, Processor processor)
public String toString()
toString
in class DefaultRoute
public Processor getProcessor()
protected void addServices(List<Service> services) throws Exception
addServices
in class DefaultRoute
Exception
public Navigate<Processor> navigate()
Route
Processor
s.Processor
.public Consumer getConsumer()
Route
Consumer
public boolean supportsSuspension()
Route
Apache Camel