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, suspendingDESCRIPTION_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
|
List<Processor> |
filter(String pattern)
Returns a list of all the
Processors from this route that has id's matching the pattern |
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, getDescription, getEndpoint, getId, getProperties, getRouteContext, getServices, getUptime, getUptimeMillis, onStartingServices, start, stop, warmUpdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, 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 List<Processor> filter(String pattern)
RouteProcessors from this route that has id's matching the patternpattern - the pattern to match by idsProcessor, is never null.public Consumer getConsumer()
RouteConsumerpublic boolean supportsSuspension()
RouteCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.