[ 
https://issues.apache.org/jira/browse/ARTEMIS-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-3187:
------------------------------------
    Description: 
There is no way using {{ActiveMQServerControl.updateQueue(String 
queueConfiguration)}} method to reset the value of the {{String}} parameters of 
the queue (for example {{groupFirstKey}}) to their default value (i.e. 
{{null}}) if they are set.

But it can be done it via a deprecated method {{@Deprecated String 
updateQueue(String name, String routingType, String filter, Integer 
maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean 
groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean 
nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, 
String user) throws Exception;}}.

It would be convenient to add the {{updateQueue(String queueConfiguration, , 
boolean forceUpdate)}} method to the {{ActiveMQServerControl}} class that calls 
{{ActiveMQServer.updateQueue(QueueConfiguration, boolean)}} to reset the queue 
parameters to default.

  was:
based on 
[https://stackoverflow.com/questions/66644697/how-do-reset-groupfirstkey-queueconfiguration-field-to-default-value-null-via]

There is no way using _ActiveMQServerControl.updateQueue(String 
queueConfiguration)_ method to reset the value of the String parameters of the 
queue (for example _groupFirstKey_) to their default value if they are set.

But can do it via a deprecated method _@Deprecated String updateQueue(String 
name, String routingType, String filter, Integer maxConsumers, Boolean 
purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer 
groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer 
consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws 
Exception;_{{}}

It would be convenient to add the _updateQueue(String queueConfiguration, , 
boolean forceUpdate)_ method to the _ActiveMQServerControl_ class that calls 
_ActiveMQServer.updateQueue(QueueConfiguration, boolean)_ to reset the queue 
parameters to default


> Add in ActiveMQServerControl updateQueue(String queueConfiguration, , boolean 
> forceUpdate) method
> -------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3187
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3187
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: 2.17.0
>            Reporter: Mikhail Lukyanov
>            Priority: Major
>
> There is no way using {{ActiveMQServerControl.updateQueue(String 
> queueConfiguration)}} method to reset the value of the {{String}} parameters 
> of the queue (for example {{groupFirstKey}}) to their default value (i.e. 
> {{null}}) if they are set.
> But it can be done it via a deprecated method {{@Deprecated String 
> updateQueue(String name, String routingType, String filter, Integer 
> maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean 
> groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean 
> nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, 
> String user) throws Exception;}}.
> It would be convenient to add the {{updateQueue(String queueConfiguration, , 
> boolean forceUpdate)}} method to the {{ActiveMQServerControl}} class that 
> calls {{ActiveMQServer.updateQueue(QueueConfiguration, boolean)}} to reset 
> the queue parameters to default.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to