Class QueueConfigurationUtils

java.lang.Object
org.apache.activemq.artemis.core.server.impl.QueueConfigurationUtils

public class QueueConfigurationUtils extends Object
  • Constructor Details

    • QueueConfigurationUtils

      public QueueConfigurationUtils()
  • Method Details

    • applyDefaults

      public static void applyDefaults(QueueConfiguration config, AddressSettings as)
      This method inspects the QueueConfiguration and applies default values to it based on the AddressSettings as well as static defaults. The static values are applied only after the values from the AddressSettings are applied. Values are only changed to defaults if they are null.
      Parameters:
      config - the QueueConfiguration to modify with default values
      as - the AddressSettings to use when applying dynamic default values
    • applyDynamicDefaults

      public static void applyDynamicDefaults(QueueConfiguration config, AddressSettings as)
      This method inspects the QueueConfiguration and applies default values to it based on the AddressSettings. Values are only changed to defaults if they are null.
      Parameters:
      config - the QueueConfiguration to modify with default values
      as - the AddressSettings to use when applying dynamic default values
    • applyStaticDefaults

      public static void applyStaticDefaults(QueueConfiguration config)
      This method inspects the QueueConfiguration and applies default values to it based on the static defaults. Values are only changed to defaults if they are null.

      Static defaults are not applied directly in QueueConfiguration because null values allow us to determine whether the fields have actually been set. This allows us, for example, to omit unset fields from JSON payloads during queue-related management operations.

      Parameters:
      config - the QueueConfiguration to modify with default values