public interface RuntimeConfiguration
CamelContext
and Route
for cross
cutting functions such as tracing, delayer, stream cache and the like.Modifier and Type | Method and Description |
---|---|
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.
|
String |
getTracingPattern()
Tracing pattern to match which node EIPs to trace.
|
Boolean |
isAllowUseOriginalMessage()
Gets whether access to the original message from Camel's error handler, or from
UnitOfWork.getOriginalInMessage() is allowed. |
Boolean |
isAutoStartup()
Gets whether the object should automatically start when Camel starts.
|
Boolean |
isAutowiredEnabled()
Whether autowiring is enabled.
|
Boolean |
isBacklogTracing()
Returns whether backlog tracing is enabled.
|
Boolean |
isCaseInsensitiveHeaders()
Whether to use case sensitive or insensitive headers.
|
Boolean |
isDebugging()
Returns whether debugging is enabled.
|
Boolean |
isLogExhaustedMessageBody()
Returns whether to log exhausted message body with message history.
|
Boolean |
isLogMask()
Gets whether security mask for Logging is enabled or not.
|
Boolean |
isMessageHistory()
Returns whether message history is enabled
|
Boolean |
isStreamCaching()
Returns whether stream cache is enabled
|
Boolean |
isTracing()
Returns whether tracing enabled
To use tracing then this must be enabled on startup to be installed in the CamelContext.
|
void |
setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
Sets whether to allow access to the original message from Camel's error handler, or from
UnitOfWork.getOriginalInMessage() . |
void |
setAutoStartup(Boolean autoStartup)
Sets whether the object should automatically start when Camel starts.
|
void |
setAutowiredEnabled(Boolean autowiredEnabled)
Whether autowiring is enabled.
|
void |
setBacklogTracing(Boolean backlogTrace)
Sets whether backlog tracing is enabled or not (default is disabled).
|
void |
setCaseInsensitiveHeaders(Boolean caseInsensitiveHeaders)
Whether to use case sensitive or insensitive headers.
|
void |
setDebugging(Boolean debugging)
Sets whether debugging (will use backlog if no custom debugger has been configured) is enabled or not (default is
disabled).
|
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 |
setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
|
void |
setLogMask(Boolean logMask)
Sets whether security mask for Logging is enabled or not (default is disabled).
|
void |
setMessageHistory(Boolean messageHistory)
Sets whether message history 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).
|
void |
setTracingPattern(String tracePattern)
Tracing pattern to match which node EIPs to trace.
|
void setStreamCaching(Boolean cache)
cache
- whether stream caching is enabled or notBoolean isStreamCaching()
void setTracing(Boolean tracing)
tracing
- whether to enable tracing.Boolean isTracing()
String getTracingPattern()
void setTracingPattern(String tracePattern)
void setBacklogTracing(Boolean backlogTrace)
backlogTrace
- whether to enable backlog tracing.setTracing(Boolean)
Boolean isBacklogTracing()
void setDebugging(Boolean debugging)
debugging
- whether to enable debugging.Boolean isDebugging()
void setMessageHistory(Boolean messageHistory)
messageHistory
- whether message history is enabledBoolean isMessageHistory()
void setLogMask(Boolean logMask)
logMask
- true if mask is enabledBoolean isLogMask()
void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
logExhaustedMessageBody
- whether message body should be loggedBoolean isLogExhaustedMessageBody()
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
CamelContextLifecycle.start()
method, to start the context, and then you would need to start the
routes manually using RouteController.startRoute(String)
.
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()
void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
UnitOfWork.getOriginalInMessage()
.
Turning this off can optimize performance, as defensive copy of the original message is not needed.allowUseOriginalMessage
- the option to use.Boolean isAllowUseOriginalMessage()
UnitOfWork.getOriginalInMessage()
is allowed.Boolean isCaseInsensitiveHeaders()
void setCaseInsensitiveHeaders(Boolean caseInsensitiveHeaders)
Boolean isAutowiredEnabled()
void setAutowiredEnabled(Boolean autowiredEnabled)
Apache Camel