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 Details

  • Method Details

    • end

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • 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

      public ErrorRegistryConfigurationProperties withEnabled(boolean enabled)
      Whether the error registry is enabled to capture errors during message routing.
    • withMaximumEntries

      public ErrorRegistryConfigurationProperties withMaximumEntries(int maximumEntries)
      The maximum number of error entries to keep in the registry. When the limit is exceeded, the oldest entries are evicted.
    • withTimeToLiveSeconds

      public ErrorRegistryConfigurationProperties withTimeToLiveSeconds(int timeToLiveSeconds)
      The time-to-live in seconds for error entries. Entries older than this are evicted.
    • withBodyMaxChars

      public ErrorRegistryConfigurationProperties withBodyMaxChars(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.
    • withBodyIncludeStreams

      public ErrorRegistryConfigurationProperties withBodyIncludeStreams(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.
    • withBodyIncludeFiles

      public ErrorRegistryConfigurationProperties withBodyIncludeFiles(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.
    • 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.