mirror of https://github.com/apache/activemq.git
Replace use of depricated setInactiveTimoutBeforeGC
This commit is contained in:
parent
7e4faa3493
commit
efe716f3b3
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue