[AMQ-9543] Replace use of deprecated setInactiveTimoutBeforeGC in unit tests (#1269)

* Fix typo in the deprication doc

* Replace use of depricated setInactiveTimoutBeforeGC

(cherry picked from commit cb528078a6)
This commit is contained in:
DressedUpZebra 2024-12-19 00:15:52 +01:00 committed by Christopher L. Shannon
parent 90356ee2ba
commit 15106cb8ba
4 changed files with 5 additions and 5 deletions

View File

@ -1034,7 +1034,7 @@ public class PolicyEntry extends DestinationMapEntry {
/**
* @return the amount of time spent inactive before GC of the destination kicks in.
*
* @deprecated use getInactiveTimeoutBeforeGC instead.
* @deprecated use {@link #getInactiveTimeoutBeforeGC} instead.
*/
@Deprecated
public long getInactiveTimoutBeforeGC() {
@ -1047,7 +1047,7 @@ public class PolicyEntry extends DestinationMapEntry {
* @param inactiveTimoutBeforeGC
* time in milliseconds to configure as the inactive timeout.
*
* @deprecated use getInactiveTimeoutBeforeGC instead.
* @deprecated use {@link #setInactiveTimeoutBeforeGC} instead.
*/
@Deprecated
public void setInactiveTimoutBeforeGC(long inactiveTimoutBeforeGC) {

View File

@ -122,7 +122,7 @@ public class AMQ3157Test extends EmbeddedBrokerTestSupport {
PolicyEntry entry = new PolicyEntry();
entry.setGcInactiveDestinations(true);
entry.setInactiveTimoutBeforeGC(5000);
entry.setInactiveTimeoutBeforeGC(5000);
entry.setProducerFlowControl(true);
PolicyMap map = new PolicyMap();
map.setDefaultEntry(entry);

View File

@ -127,7 +127,7 @@ public class AMQ3324Test {
PolicyEntry entry = new PolicyEntry();
entry.setGcInactiveDestinations(true);
entry.setInactiveTimoutBeforeGC(2000);
entry.setInactiveTimeoutBeforeGC(2000);
entry.setProducerFlowControl(true);
entry.setAdvisoryForConsumed(true);
entry.setAdvisoryForFastProducers(true);

View File

@ -270,7 +270,7 @@ public class RequestReplyNoAdvisoryNetworkTest extends JmsMultipleBrokersTestSup
tempReplyQPolicy.setOptimizedDispatch(true);
tempReplyQPolicy.setGcInactiveDestinations(true);
tempReplyQPolicy.setGcWithNetworkConsumers(true);
tempReplyQPolicy.setInactiveTimoutBeforeGC(1000);
tempReplyQPolicy.setInactiveTimeoutBeforeGC(1000);
map.put(replyQWildcard, tempReplyQPolicy);
broker.setDestinationPolicy(map);