Class QueueConfigurationUtils
java.lang.Object
org.apache.activemq.artemis.core.server.impl.QueueConfigurationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyDefaults(QueueConfiguration config, AddressSettings as) This method inspects theQueueConfigurationand applies default values to it based on theAddressSettingsas well asstaticdefaults.static voidapplyDynamicDefaults(QueueConfiguration config, AddressSettings as) This method inspects theQueueConfigurationand applies default values to it based on theAddressSettings.static voidThis method inspects theQueueConfigurationand applies default values to it based on thestaticdefaults.
-
Constructor Details
-
QueueConfigurationUtils
public QueueConfigurationUtils()
-
-
Method Details
-
applyDefaults
This method inspects theQueueConfigurationand applies default values to it based on theAddressSettingsas well asstaticdefaults. Thestaticvalues are applied only after the values from theAddressSettingsare applied. Values are only changed to defaults if they arenull.- Parameters:
config- theQueueConfigurationto modify with default valuesas- theAddressSettingsto use when applying dynamic default values
-
applyDynamicDefaults
This method inspects theQueueConfigurationand applies default values to it based on theAddressSettings. Values are only changed to defaults if they arenull.- Parameters:
config- theQueueConfigurationto modify with default valuesas- theAddressSettingsto use when applying dynamic default values
-
applyStaticDefaults
This method inspects theQueueConfigurationand applies default values to it based on thestaticdefaults. Values are only changed to defaults if they arenull.Static defaults are not applied directly in
QueueConfigurationbecausenullvalues 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- theQueueConfigurationto modify with default values
-