Interface ClientCustomizer<T>

Type Parameters:
T - the type of the configuration object
All Superinterfaces:
Prioritized

public interface ClientCustomizer<T> extends Prioritized
A customizer that can be used to modify the configuration used to create a messaging client.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default priority for config customizers.
  • Method Summary

    Modifier and Type
    Method
    Description
    customize(String channel, Config channelConfig, T config)
    Customize the given configuration object.
    default int
    Returns the priority for this SPI element.
  • Field Details

    • CLIENT_CONFIG_CUSTOMIZER_DEFAULT_PRIORITY

      static final int CLIENT_CONFIG_CUSTOMIZER_DEFAULT_PRIORITY
      The default priority for config customizers.
      See Also:
  • Method Details

    • customize

      T customize(String channel, Config channelConfig, T config)
      Customize the given configuration object.
      Parameters:
      channel - the channel name
      channelConfig - the channel configuration
      config - the configuration object
      Returns:
      the modified configuration object, or null to skip this customizer
    • getPriority

      default int getPriority()
      Description copied from interface: Prioritized

      Returns the priority for this SPI element.

      Specified by:
      getPriority in interface Prioritized
      Returns:
      the priority value