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, setCamelContextCollection<Route> getControlledRoutes()
void startRoute(String routeId) throws Exception
Exceptionvoid stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionboolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
Exceptionvoid suspendRoute(String routeId) throws Exception
Exceptionvoid suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionvoid resumeRoute(String routeId) throws Exception
Exceptiondefault <T extends RouteController> T unwrap(Class<T> clazz)
clazz - the proprietary class or interface of the underlying concrete RouteController.Apache Camel