Package org.apache.activemq.broker.region.cursors

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


     * @return the cursor
     * @see org.apache.activemq.broker.region.policy.PendingQueueMessageStoragePolicy#getQueuePendingMessageCursor(org.apache.openjpa.lib.util.concurrent.Queue,
     *      org.apache.activemq.kaha.Store)
     */
    public PendingMessageCursor getQueuePendingMessageCursor(Queue queue, Store tmpStore) {
        return new FilePendingMessageCursor("PendingCursor:" + queue.getName(), tmpStore);
    }
View Full Code Here


        super(broker, context, info);
        this.usageManager = usageManager;
        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

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

     * @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 FilePendingMessageCursor("PendingCursor:" + name, tmpStorage);
    }
View Full Code Here

        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

        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);
        }
    }
View Full Code Here

        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);
        }
    }
View Full Code Here

        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);
        }
    }
View Full Code Here

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

     * @param maxBatchSize
     * @param sub
     * @return the Pending Message cursor
     */
    public PendingMessageCursor getSubscriberPendingMessageCursor(Broker broker,String clientId, String name, int maxBatchSize, Subscription sub) {
        return new FilePendingMessageCursor(broker,name,AbstractPendingMessageCursor.isPrioritizedMessageSubscriber(broker, sub));
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.broker.region.cursors.FilePendingMessageCursor

Copyright © 2018 www.massapicom. 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.