Annotation Interface EnableIntegrationManagement


Enables default configuring of management in Spring Integration components in an existing application.

The resulting IntegrationManagementConfigurer bean is defined under the name integrationManagementConfigurer.

Since:
4.2
Author:
Gary Russell, Artem Bilan
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Use for disabling all logging in the main message flow in framework components.
    Set simple pattern component names matching for observation registry injection.
  • Element Details

    • defaultLoggingEnabled

      String defaultLoggingEnabled
      Use for disabling all logging in the main message flow in framework components. When 'false', such logging will be skipped, regardless of logging level. When 'true', the logging is controlled as normal by the logging subsystem log level configuration.

      It has been found that in high-volume messaging environments, calls to methods such as logger.isDebuggingEnabled() can be quite expensive and account for an inordinate amount of CPU time.

      Set this to false for disabling logging by default in all framework components that implement IntegrationManagement (channels, message handlers etc.). It turns off logging such as "PreSend on channel", "Received message" etc.

      After the context is initialized, individual components can have their setting changed by invoking IntegrationManagement.setLoggingEnabled(boolean).

      Returns:
      the value; true by default.
      Default:
      "true"
    • observationPatterns

      String[] observationPatterns
      Set simple pattern component names matching for observation registry injection.
      Returns:
      simple pattern component names matching for observation registry injection. None by default - no unconditional observation instrumentation. Can be set to * to instrumentation all the integration components. The pattern can start with ! to negate the matching. The value can be a property placeholder and/or comma-separated.
      Since:
      6.0
      See Also:
      Default:
      {}