public interface RouteController extends CamelContextAware, Service
Modifier and Type | Method and Description |
---|---|
Collection<Route> |
getControlledRoutes()
Return the list of routes controlled by this controller.
|
void |
resumeRoute(String routeId) |
void |
startRoute(String routeId) |
void |
stopRoute(String routeId) |
void |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
boolean |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout) |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
default <T extends RouteController> |
unwrap(Class<T> clazz)
Access the underlying concrete RouteController implementation.
|
getCamelContext, setCamelContext
Collection<Route> getControlledRoutes()
void startRoute(String routeId) throws Exception
Exception
void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exception
boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
Exception
void suspendRoute(String routeId) throws Exception
Exception
void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exception
void resumeRoute(String routeId) throws Exception
Exception
default <T extends RouteController> T unwrap(Class<T> clazz)
clazz
- the proprietary class or interface of the underlying concrete RouteController.Apache Camel