Examples of VMPendingMessageCursor


Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

     * @param queue
     * @param tmpStore
     * @return the cursor
     */
    public PendingMessageCursor getQueuePendingMessageCursor(Queue queue, Store tmpStore) {
        return new VMPendingMessageCursor();
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

     * @param tmpStorage
     * @param maxBatchSize
     * @return the Pending Message cursor
     */
    public PendingMessageCursor getSubscriberPendingMessageCursor(String clientId, String name, Store tmpStorage, int maxBatchSize, Subscription sub) {
        return new VMPendingMessageCursor();
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

     * @see org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy#getSubscriberPendingMessageCursor(java.lang.String,
     *      org.apache.activemq.kaha.Store, int)
     */
    public PendingMessageCursor getSubscriberPendingMessageCursor(String name, Store tmpStorage,
                                                                  int maxBatchSize) {
        return new VMPendingMessageCursor();
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

        String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
        Store tempDataStore = broker.getTempDataStore();
        if (tempDataStore != null) {
            this.matched = new FilePendingMessageCursor(matchedName, tempDataStore);
        } else {
            this.matched = new VMPendingMessageCursor();
        }
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

        this.systemUsage=systemUsage;
        this.memoryUsage = new MemoryUsage(systemUsage.getMemoryUsage(), destination.toString());
        this.memoryUsage.setUsagePortion(1.0f);
        this.store = store;
        if (destination.isTemporary() || tmpStore==null ) {
            this.messages = new VMPendingMessageCursor();
        } else {
            this.messages = new StoreQueueCursor(this, tmpStore);
        }

        this.taskRunner = taskFactory.createTaskRunner(this, "Queue  " + destination.getPhysicalName());
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

        this.usageManager=usageManager;
        pending = cursor;
    }

    public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws InvalidSelectorException {
        this(broker,usageManager,context, info, new VMPendingMessageCursor());
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

        pending = cursor;
        this.scheduler = broker.getScheduler();
    }

    public PrefetchSubscription(Broker broker,SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws InvalidSelectorException {
        this(broker,usageManager,context, info, new VMPendingMessageCursor(false));
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

    @Override
    public void initialize() throws Exception {
        if (this.messages == null) {
            if (destination.isTemporary() || broker == null || store == null) {
                this.messages = new VMPendingMessageCursor(isPrioritizedMessages());
            } else {
                this.messages = new StoreQueueCursor(broker, this);
            }
        }
        // If a VMPendingMessageCursor don't use the default Producer System
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

        this.usageManager=usageManager;
        pending = cursor;
    }

    public PrefetchSubscription(Broker broker,SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws InvalidSelectorException {
        this(broker,usageManager,context, info, new VMPendingMessageCursor());
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.cursors.VMPendingMessageCursor

    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();
        } else {
            this.matched = new FilePendingMessageCursor(broker,matchedName);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.