mirror of https://github.com/apache/activemq.git
Exclude advisory topics from the expired message check.
This commit is contained in:
parent
a812131db7
commit
16a1e2b686
|
@ -560,7 +560,7 @@ public class Topic extends BaseDestination implements Task {
|
||||||
memoryUsage.start();
|
memoryUsage.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getExpireMessagesPeriod() > 0) {
|
if (getExpireMessagesPeriod() > 0 && !AdvisorySupport.isAdvisoryTopic(getActiveMQDestination())) {
|
||||||
scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod());
|
scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue