org.apache.activemq.broker.Broker.getTempDataStore()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中org.apache.activemq.broker.Broker.getTempDataStore()方法的一些代码示例,展示了Broker.getTempDataStore()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Broker.getTempDataStore()方法的具体详情如下:
包路径:org.apache.activemq.broker.Broker
类名称:Broker
方法名:getTempDataStore

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();
}

相关文章

微信公众号

最新文章

更多

Broker类方法