mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@694781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47130408a7
commit
f2fc86405f
|
@ -41,7 +41,7 @@ public class AbstractPendingMessageCursor implements PendingMessageCursor {
|
|||
protected int maxAuditDepth=1000;
|
||||
protected boolean enableAudit=true;
|
||||
protected ActiveMQMessageAudit audit;
|
||||
protected boolean useCache=false;
|
||||
protected boolean useCache=true;
|
||||
private boolean started=false;
|
||||
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple
|
|||
* @param store
|
||||
*/
|
||||
public FilePendingMessageCursor(Broker broker,String name) {
|
||||
this.useCache=false;
|
||||
this.broker = broker;
|
||||
//the store can be null if the BrokerService has persistence
|
||||
//turned off
|
||||
|
|
|
@ -37,6 +37,10 @@ public class VMPendingMessageCursor extends AbstractPendingMessageCursor {
|
|||
private Iterator<MessageReference> iter;
|
||||
private MessageReference last;
|
||||
|
||||
public VMPendingMessageCursor(){
|
||||
this.useCache=false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception {
|
||||
|
|
Loading…
Reference in New Issue