mirror of https://github.com/apache/activemq.git
Apply patch from https://issues.apache.org/activemq/browse/AMQ-2002
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@813962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e01acf44ca
commit
e7c9d21660
|
@ -66,8 +66,8 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
||||||
}else {
|
}else {
|
||||||
this.nonPersistent = new VMPendingMessageCursor();
|
this.nonPersistent = new VMPendingMessageCursor();
|
||||||
}
|
}
|
||||||
//TODO is this correct? we are ignoring the constructor parameter matchBatchSize
|
|
||||||
// this.nonPersistent.setMaxBatchSize(getMaxBatchSize());
|
this.nonPersistent.setMaxBatchSize(maxBatchSize);
|
||||||
this.nonPersistent.setSystemUsage(systemUsage);
|
this.nonPersistent.setSystemUsage(systemUsage);
|
||||||
this.storePrefetches.add(this.nonPersistent);
|
this.storePrefetches.add(this.nonPersistent);
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,7 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
||||||
tsp.setEnableAudit(isEnableAudit());
|
tsp.setEnableAudit(isEnableAudit());
|
||||||
tsp.setMaxAuditDepth(getMaxAuditDepth());
|
tsp.setMaxAuditDepth(getMaxAuditDepth());
|
||||||
tsp.setMaxProducersToAudit(getMaxProducersToAudit());
|
tsp.setMaxProducersToAudit(getMaxProducersToAudit());
|
||||||
|
tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
|
||||||
topics.put(destination, tsp);
|
topics.put(destination, tsp);
|
||||||
storePrefetches.add(tsp);
|
storePrefetches.add(tsp);
|
||||||
if (isStarted()) {
|
if (isStarted()) {
|
||||||
|
@ -259,6 +260,13 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setMemoryUsageHighWaterMark(int memoryUsageHighWaterMark) {
|
||||||
|
super.setMemoryUsageHighWaterMark(memoryUsageHighWaterMark);
|
||||||
|
for (PendingMessageCursor cursor : storePrefetches) {
|
||||||
|
cursor.setMemoryUsageHighWaterMark(memoryUsageHighWaterMark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setMaxProducersToAudit(int maxProducersToAudit) {
|
public void setMaxProducersToAudit(int maxProducersToAudit) {
|
||||||
super.setMaxProducersToAudit(maxProducersToAudit);
|
super.setMaxProducersToAudit(maxProducersToAudit);
|
||||||
for (PendingMessageCursor cursor : storePrefetches) {
|
for (PendingMessageCursor cursor : storePrefetches) {
|
||||||
|
|
Loading…
Reference in New Issue