mirror of
https://github.com/apache/activemq.git
synced 2025-02-28 05:09:07 +00:00
turn cache off by default
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@615297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8674d4006
commit
e16bcf2f48
@ -44,12 +44,11 @@ class QueueStorePrefetch extends AbstractPendingMessageCursor implements Message
|
|||||||
private int size;
|
private int size;
|
||||||
private boolean fillBatchDuplicates;
|
private boolean fillBatchDuplicates;
|
||||||
private boolean cacheEnabled;
|
private boolean cacheEnabled;
|
||||||
|
private boolean useCache =false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param topic
|
* Construct it
|
||||||
* @param clientId
|
* @param queue
|
||||||
* @param subscriberName
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
*/
|
||||||
public QueueStorePrefetch(Queue queue) {
|
public QueueStorePrefetch(Queue queue) {
|
||||||
this.regionDestination = queue;
|
this.regionDestination = queue;
|
||||||
@ -60,7 +59,7 @@ class QueueStorePrefetch extends AbstractPendingMessageCursor implements Message
|
|||||||
public synchronized void start() throws Exception{
|
public synchronized void start() throws Exception{
|
||||||
if (!isStarted()) {
|
if (!isStarted()) {
|
||||||
this.size = getStoreSize();
|
this.size = getStoreSize();
|
||||||
if (this.size==0) {
|
if (this.size==0&&useCache) {
|
||||||
cacheEnabled=true;
|
cacheEnabled=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user