Class ErrorRegistryConfigurationProperties
java.lang.Object
org.apache.camel.main.ErrorRegistryConfigurationProperties
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable
@Configurer(extended=true)
public class ErrorRegistryConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Error Registry configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()intintintbooleanbooleanbooleanbooleanbooleanvoidsetBodyIncludeFiles(boolean bodyIncludeFiles) Whether to include the message body of file based messages.voidsetBodyIncludeStreams(boolean bodyIncludeStreams) Whether to include the message body of stream based messages.voidsetBodyMaxChars(int bodyMaxChars) To limit the message body to a maximum size in the captured error data.voidsetEnabled(boolean enabled) Whether the error registry is enabled to capture errors during message routing.voidsetIncludeExchangeProperties(boolean includeExchangeProperties) Whether to include the exchange properties in the captured error data.voidsetIncludeExchangeVariables(boolean includeExchangeVariables) Whether to include the exchange variables in the captured error data.voidsetMaximumEntries(int maximumEntries) The maximum number of error entries to keep in the registry.voidsetTimeToLiveSeconds(int timeToLiveSeconds) The time-to-live in seconds for error entries.withBodyIncludeFiles(boolean bodyIncludeFiles) Whether to include the message body of file based messages.withBodyIncludeStreams(boolean bodyIncludeStreams) Whether to include the message body of stream based messages.withBodyMaxChars(int bodyMaxChars) To limit the message body to a maximum size in the captured error data.withEnabled(boolean enabled) Whether the error registry is enabled to capture errors during message routing.withIncludeExchangeProperties(boolean includeExchangeProperties) Whether to include the exchange properties in the captured error data.withIncludeExchangeVariables(boolean includeExchangeVariables) Whether to include the exchange variables in the captured error data.withMaximumEntries(int maximumEntries) The maximum number of error entries to keep in the registry.withTimeToLiveSeconds(int timeToLiveSeconds) The time-to-live in seconds for error entries.
-
Constructor Details
-
ErrorRegistryConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) Whether the error registry is enabled to capture errors during message routing. -
getMaximumEntries
public int getMaximumEntries() -
setMaximumEntries
public void setMaximumEntries(int maximumEntries) The maximum number of error entries to keep in the registry. When the limit is exceeded, the oldest entries are evicted. -
getTimeToLiveSeconds
public int getTimeToLiveSeconds() -
setTimeToLiveSeconds
public void setTimeToLiveSeconds(int timeToLiveSeconds) The time-to-live in seconds for error entries. Entries older than this are evicted. The default value is 0 (disabled). -
getBodyMaxChars
public int getBodyMaxChars() -
setBodyMaxChars
public void setBodyMaxChars(int bodyMaxChars) To limit the message body to a maximum size in the captured error data. Use 0 or negative value to use unlimited size. -
isBodyIncludeStreams
public boolean isBodyIncludeStreams() -
setBodyIncludeStreams
public void setBodyIncludeStreams(boolean bodyIncludeStreams) Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching. -
isBodyIncludeFiles
public boolean isBodyIncludeFiles() -
setBodyIncludeFiles
public void setBodyIncludeFiles(boolean bodyIncludeFiles) Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file. -
isIncludeExchangeProperties
public boolean isIncludeExchangeProperties() -
setIncludeExchangeProperties
public void setIncludeExchangeProperties(boolean includeExchangeProperties) Whether to include the exchange properties in the captured error data. -
isIncludeExchangeVariables
public boolean isIncludeExchangeVariables() -
setIncludeExchangeVariables
public void setIncludeExchangeVariables(boolean includeExchangeVariables) Whether to include the exchange variables in the captured error data. -
withEnabled
Whether the error registry is enabled to capture errors during message routing. -
withMaximumEntries
The maximum number of error entries to keep in the registry. When the limit is exceeded, the oldest entries are evicted. -
withTimeToLiveSeconds
The time-to-live in seconds for error entries. Entries older than this are evicted. -
withBodyMaxChars
To limit the message body to a maximum size in the captured error data. Use 0 or negative value to use unlimited size. -
withBodyIncludeStreams
Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching. -
withBodyIncludeFiles
Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file. -
withIncludeExchangeProperties
public ErrorRegistryConfigurationProperties withIncludeExchangeProperties(boolean includeExchangeProperties) Whether to include the exchange properties in the captured error data. -
withIncludeExchangeVariables
public ErrorRegistryConfigurationProperties withIncludeExchangeVariables(boolean includeExchangeVariables) Whether to include the exchange variables in the captured error data.
-