Examples of VMPendingMessageCursor


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

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

    public PrefetchSubscription(Broker broker,SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws JMSException {
        this(broker,usageManager,context, info, new VMPendingMessageCursor(false));
    }
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.getTempDataStore()==null ) {
            this.matched = new VMPendingMessageCursor(false);
        } else {
            this.matched = new FilePendingMessageCursor(broker,matchedName,false);
        }

        this.scheduler = broker.getScheduler();
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);
            }
        }
View Full Code Here

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

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

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

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

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

        this.tempDest = (ActiveMQTempDestination) destination;
    }
   
    @Override
    public void initialize() throws Exception {
        this.messages=new VMPendingMessageCursor();
        this.messages.setMemoryUsageHighWaterMark(getCursorMemoryHighWaterMark());
        this.systemUsage = brokerService.getSystemUsage();
        memoryUsage.setParent(systemUsage.getMemoryUsage());          
        this.taskRunner = taskFactory.createTaskRunner(this, "TempQueue:  " + destination.getPhysicalName());
    }
View Full Code Here

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

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

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

    }

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

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

     * @return a Cursor
     * @see org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy#getSubscriberPendingMessageCursor(java.lang.String,
     *      org.apache.activemq.kaha.Store, int)
     */
    public PendingMessageCursor getSubscriberPendingMessageCursor(Broker broker,String name,int maxBatchSize) {
        return 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.