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
|
||||
|
|
|
@ -36,6 +36,10 @@ public class VMPendingMessageCursor extends AbstractPendingMessageCursor {
|
|||
private LinkedList<MessageReference> list = new LinkedList<MessageReference>();
|
||||
private Iterator<MessageReference> iter;
|
||||
private MessageReference last;
|
||||
|
||||
public VMPendingMessageCursor(){
|
||||
this.useCache=false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue