|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeConfiguration
Various runtime configuration options used by CamelContext
and RouteContext
for cross cutting functions such as tracing, delayer, stream cache and the like.
Method Summary | |
---|---|
Long |
getDelayer()
Gets the delay value |
ShutdownRoute |
getShutdownRoute()
Gets the option to use when shutting down the route. |
ShutdownRunningTask |
getShutdownRunningTask()
Gets the ShutdownRunningTask option in use when shutting down a route. |
Boolean |
isAutoStartup()
Gets whether the object should automatically start when Camel starts. |
Boolean |
isHandleFault()
Returns whether fault handling enabled |
Boolean |
isStreamCaching()
Returns whether stream cache is enabled |
Boolean |
isTracing()
Returns whether tracing enabled |
void |
setAutoStartup(Boolean autoStartup)
Sets whether the object should automatically start when Camel starts. |
void |
setDelayer(Long delay)
Sets a delay value in millis that a message is delayed at every step it takes in the route path, slowing the process down to better observe what is occurring Is disabled by default |
void |
setHandleFault(Boolean handleFault)
Sets whether fault handling is enabled or not (default is disabled). |
void |
setShutdownRoute(ShutdownRoute shutdownRoute)
Sets the ShutdownRoute option for routes. |
void |
setShutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
Sets the ShutdownRunningTask option to use when shutting down a route. |
void |
setStreamCaching(Boolean cache)
Sets whether stream caching is enabled or not (default is disabled). |
void |
setTracing(Boolean tracing)
Sets whether tracing is enabled or not (default is disabled). |
Method Detail |
---|
void setStreamCaching(Boolean cache)
cache
- whether stream caching is enabled or notBoolean isStreamCaching()
void setTracing(Boolean tracing)
tracing
- whether to enable tracing.Boolean isTracing()
void setHandleFault(Boolean handleFault)
handleFault
- whether to enable fault handling.Boolean isHandleFault()
void setDelayer(Long delay)
delay
- delay in millisLong getDelayer()
void setAutoStartup(Boolean autoStartup)
CamelContext
s are always started.
CamelContext
then that takes precedence
and no routes is started. You would need to start CamelContext
explicit using
the Service.start()
method, to start the context and the routes.
Default is true to always start up.
autoStartup
- whether to start up automatically.Boolean isAutoStartup()
CamelContext
s are always started.
void setShutdownRoute(ShutdownRoute shutdownRoute)
shutdownRoute
- the option to use.ShutdownRoute getShutdownRoute()
void setShutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
shutdownRunningTask
- the option to use.ShutdownRunningTask getShutdownRunningTask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |