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 {
|
||||
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.storePrefetches.add(this.nonPersistent);
|
||||
}
|
||||
|
@ -106,6 +106,7 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
|||
tsp.setEnableAudit(isEnableAudit());
|
||||
tsp.setMaxAuditDepth(getMaxAuditDepth());
|
||||
tsp.setMaxProducersToAudit(getMaxProducersToAudit());
|
||||
tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
|
||||
topics.put(destination, tsp);
|
||||
storePrefetches.add(tsp);
|
||||
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) {
|
||||
super.setMaxProducersToAudit(maxProducersToAudit);
|
||||
for (PendingMessageCursor cursor : storePrefetches) {
|
||||
|
@ -304,7 +312,7 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
|||
}
|
||||
return currentCursor;
|
||||
}
|
||||
|
||||
|
||||
public String toString() {
|
||||
return "StoreDurableSubscriber(" + clientId + ":" + subscriberName + ")";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue