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 java.lang.String |
GROUP_PROPERTY |
static java.lang.String |
ID_PROPERTY |
static java.lang.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
|
java.lang.String |
getId()
Gets the route id
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
This property map is used to associate information about the route.
|
RouteContext |
getRouteContext()
Gets the route context
|
java.util.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(java.util.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 java.lang.String ID_PROPERTY
static final java.lang.String PARENT_PROPERTY
static final java.lang.String GROUP_PROPERTY
java.lang.String getId()
Endpoint getEndpoint()
boolean supportsSuspension()
java.util.Map<java.lang.String,java.lang.Object> getProperties()
RouteContext getRouteContext()
void onStartingServices(java.util.List<Service> services) throws java.lang.Exception
services
- the servicejava.lang.Exception
- is thrown in case of errorjava.util.List<Service> getServices()
void addService(Service service)
service
- the serviceNavigate<Processor> navigate()
Processor
s.Processor
.void warmUp()
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.