@Override public PListStore getTempDataStore() { return getNext().getTempDataStore(); }
/** * @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; }
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(); }
public PListStore getTempDataStore() { return next.getTempDataStore(); }
/** * @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; }
@Override public PListStore getTempDataStore() { return getNext().getTempDataStore(); }
@Override public PListStore getTempDataStore() { return getNext().getTempDataStore(); }
@Override public PListStore getTempDataStore() { return getNext().getTempDataStore(); }
public PListStore getTempDataStore() { return getNext().getTempDataStore(); }
/** * @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; }
/** * @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; }
/** * @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; }
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); } }
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(); }
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(); }
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(); }