mirror of https://github.com/apache/activemq.git
[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:
parent
90356ee2ba
commit
15106cb8ba
|
@ -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) {
|
||||
|
|
|
@ -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