本文整理了Java中org.apache.activemq.broker.Broker.getTempDataStore()
方法的一些代码示例,展示了Broker.getTempDataStore()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Broker.getTempDataStore()
方法的具体详情如下:
包路径:org.apache.activemq.broker.Broker
类名称:Broker
方法名:getTempDataStore
暂无
代码示例来源:origin: apache/activemq
@Override
public PListStore getTempDataStore() {
return getNext().getTempDataStore();
}
代码示例来源:origin: apache/activemq
/**
* @param broker
* @param name
* @param prioritizedMessages
*/
public FilePendingMessageCursor(Broker broker, String name, boolean prioritizedMessages) {
super(prioritizedMessages);
if (this.prioritizedMessages) {
this.memoryList = new PrioritizedPendingList();
} else {
this.memoryList = new OrderedPendingList();
}
this.broker = broker;
// the store can be null if the BrokerService has persistence
// turned off
this.store = broker.getTempDataStore();
this.name = NAME_COUNT.incrementAndGet() + "_" + name;
}
代码示例来源:origin: apache/activemq
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
super(broker, context, info);
this.usageManager = usageManager;
String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
this.matched = new VMPendingMessageCursor(false);
} else {
this.matched = new FilePendingMessageCursor(broker,matchedName,false);
}
this.scheduler = broker.getScheduler();
}
代码示例来源:origin: pierre/meteo
public PListStore getTempDataStore() {
return next.getTempDataStore();
}
代码示例来源:origin: pierre/meteo
/**
* @param broker
* @param name
* @param prioritizedMessages
*/
public FilePendingMessageCursor(Broker broker, String name, boolean prioritizedMessages) {
super(prioritizedMessages);
this.broker = broker;
// the store can be null if the BrokerService has persistence
// turned off
this.store = broker.getTempDataStore();
this.name = NAME_COUNT.incrementAndGet() + "_" + name;
}
代码示例来源:origin: org.apache.activemq/activemq-broker
@Override
public PListStore getTempDataStore() {
return getNext().getTempDataStore();
}
代码示例来源:origin: org.apache.activemq/activemq-all
@Override
public PListStore getTempDataStore() {
return getNext().getTempDataStore();
}
代码示例来源:origin: org.apache.activemq/activemq-osgi
@Override
public PListStore getTempDataStore() {
return getNext().getTempDataStore();
}
代码示例来源:origin: pierre/meteo
public PListStore getTempDataStore() {
return getNext().getTempDataStore();
}
代码示例来源:origin: org.apache.activemq/activemq-osgi
/**
* @param broker
* @param name
* @param prioritizedMessages
*/
public FilePendingMessageCursor(Broker broker, String name, boolean prioritizedMessages) {
super(prioritizedMessages);
if (this.prioritizedMessages) {
this.memoryList = new PrioritizedPendingList();
} else {
this.memoryList = new OrderedPendingList();
}
this.broker = broker;
// the store can be null if the BrokerService has persistence
// turned off
this.store = broker.getTempDataStore();
this.name = NAME_COUNT.incrementAndGet() + "_" + name;
}
代码示例来源:origin: org.apache.activemq/activemq-broker
/**
* @param broker
* @param name
* @param prioritizedMessages
*/
public FilePendingMessageCursor(Broker broker, String name, boolean prioritizedMessages) {
super(prioritizedMessages);
if (this.prioritizedMessages) {
this.memoryList = new PrioritizedPendingList();
} else {
this.memoryList = new OrderedPendingList();
}
this.broker = broker;
// the store can be null if the BrokerService has persistence
// turned off
this.store = broker.getTempDataStore();
this.name = NAME_COUNT.incrementAndGet() + "_" + name;
}
代码示例来源:origin: org.apache.activemq/activemq-all
/**
* @param broker
* @param name
* @param prioritizedMessages
*/
public FilePendingMessageCursor(Broker broker, String name, boolean prioritizedMessages) {
super(prioritizedMessages);
if (this.prioritizedMessages) {
this.memoryList = new PrioritizedPendingList();
} else {
this.memoryList = new OrderedPendingList();
}
this.broker = broker;
// the store can be null if the BrokerService has persistence
// turned off
this.store = broker.getTempDataStore();
this.name = NAME_COUNT.incrementAndGet() + "_" + name;
}
代码示例来源:origin: pierre/meteo
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
super(broker, context, info);
this.usageManager = usageManager;
String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
if (info.getDestination().isTemporary() || broker == null || broker.getTempDataStore()==null ) {
this.matched = new VMPendingMessageCursor(false);
} else {
this.matched = new FilePendingMessageCursor(broker,matchedName,false);
}
}
代码示例来源:origin: org.apache.activemq/activemq-broker
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
super(broker, context, info);
this.usageManager = usageManager;
String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
this.matched = new VMPendingMessageCursor(false);
} else {
this.matched = new FilePendingMessageCursor(broker,matchedName,false);
}
this.scheduler = broker.getScheduler();
}
代码示例来源:origin: org.apache.activemq/activemq-all
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
super(broker, context, info);
this.usageManager = usageManager;
String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
this.matched = new VMPendingMessageCursor(false);
} else {
this.matched = new FilePendingMessageCursor(broker,matchedName,false);
}
this.scheduler = broker.getScheduler();
}
代码示例来源:origin: org.apache.activemq/activemq-osgi
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
super(broker, context, info);
this.usageManager = usageManager;
String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
this.matched = new VMPendingMessageCursor(false);
} else {
this.matched = new FilePendingMessageCursor(broker,matchedName,false);
}
this.scheduler = broker.getScheduler();
}
内容来源于网络,如有侵权,请联系作者删除!