public interface Route
Endpoint
within a CamelContext
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.Modifier and Type | Field and Description |
---|---|
static String |
GROUP_PROPERTY |
static String |
ID_PROPERTY |
static String |
PARENT_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
addService(Service service)
Adds a service to this route
|
Consumer |
getConsumer()
Gets the inbound
Consumer |
Endpoint |
getEndpoint()
Gets the inbound endpoint
|
String |
getId()
Gets the route id
|
Map<String,Object> |
getProperties()
This property map is used to associate information about the route.
|
RouteContext |
getRouteContext()
Gets the route context
|
List<Service> |
getServices()
Returns the services for this particular route
|
Navigate<Processor> |
navigate()
Returns a navigator to navigate this route by navigating all the
Processor s. |
void |
onStartingServices(List<Service> services)
A strategy callback allowing special initialization when services are starting.
|
boolean |
supportsSuspension()
Whether or not the route supports suspension (suspend and resume)
|
void |
warmUp()
Callback preparing the route to be started, by warming up the route.
|
static final String ID_PROPERTY
static final String PARENT_PROPERTY
static final String GROUP_PROPERTY
Endpoint getEndpoint()
Consumer getConsumer()
Consumer
boolean supportsSuspension()
Map<String,Object> getProperties()
RouteContext getRouteContext()
void onStartingServices(List<Service> services) throws Exception
services
- the serviceException
- is thrown in case of errorList<Service> getServices()
void addService(Service service)
service
- the serviceNavigate<Processor> navigate()
Processor
s.Processor
.void warmUp()
Apache Camel