Package org.activemq.store

Examples of org.activemq.store.MessageStore


    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        JournalMessageStore store = (JournalMessageStore) messageStores.get(destinationName);
        if( store == null ) {
          MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
          store = new JournalMessageStore(this, checkpointStore, destinationName);
          messageStores.put(destinationName, store);
        }
        return store;
    }
View Full Code Here


    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        if (adapter == null) {
            throw new IllegalStateException("Not started");
        }
        MessageStore store = new JDBCMessageStore(this, adapter, wireFormat.copy(), destinationName);
        if( transactionStore!=null ) {
            store = transactionStore.proxy(store);
        }
        return store;
    }
View Full Code Here

    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        JournalMessageStore store = (JournalMessageStore) messageStores.get(destinationName);
        if( store == null ) {
          MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
          store = new JournalMessageStore(this, checkpointStore, destinationName);
          messageStores.put(destinationName, store);
        }
        return store;
    }
View Full Code Here

        return new VMPersistenceAdapter();
    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        ActiveMQQueue dest = new ActiveMQQueue(destinationName);
        MessageStore rc = (MessageStore)destinations.get(dest);
        if(rc==null) {
            rc = new VMMessageStore();
            if( transactionStore !=null ) {
                rc = transactionStore.proxy(rc);
            }
View Full Code Here

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        if (adapter == null) {
            throw new IllegalStateException("Not started");
        }
        MessageStore store = new JDBCMessageStore(this, adapter, wireFormat.copy(), destinationName);
        if( transactionStore!=null ) {
            store = transactionStore.proxy(store);
        }
        return store;
    }
View Full Code Here

    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        JournalMessageStore store = (JournalMessageStore) messageStores.get(destinationName);
        if( store == null ) {
          MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
          store = new JournalMessageStore(this, checkpointStore, destinationName);
          messageStores.put(destinationName, store);
        }
        return store;
    }
View Full Code Here

     * @param isDeadLetterQueue is this queue a dead letter queue
     * @return the container
     * @throws JMSException
     */
    private DurableQueueBoundedMessageContainer createContainer(ActiveMQDestination destination, boolean isDeadLetterQueue) throws JMSException {
        MessageStore messageStore = persistenceAdapter.createQueueMessageStore(destination.getPhysicalName());
        DurableQueueBoundedMessageContainer container = new DurableQueueBoundedMessageContainer(messageStore, threadPool, queueManager, destination, isDeadLetterQueue ? null : redeliveryPolicy, deadLetterPolicy);
        addContainer(container);
        if (started.get()) {
            container.start();           
        }
View Full Code Here

    public Map getInitialDestinations() {
        return longTermPersistence.getInitialDestinations();
    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        MessageStore longtermStore = longTermPersistence.createQueueMessageStore(destinationName);
        CacheMessageStore store = new CacheMessageStore(this, longtermStore, createMessageCache(destinationName));
        return store;
    }
View Full Code Here

    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        JournalMessageStore store = (JournalMessageStore) messageStores.get(destinationName);
        if( store == null ) {
          MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
          store = new JournalMessageStore(this, checkpointStore, destinationName);
          messageStores.put(destinationName, store);
        }
        return store;
    }
View Full Code Here

     * @param isDeadLetterQueue is this queue a dead letter queue
     * @return the container
     * @throws JMSException
     */
    private DurableQueueBoundedMessageContainer createContainer(ActiveMQDestination destination, boolean isDeadLetterQueue) throws JMSException {
        MessageStore messageStore = persistenceAdapter.createQueueMessageStore(destination.getPhysicalName());
        DurableQueueBoundedMessageContainer container = new DurableQueueBoundedMessageContainer(messageStore, threadPool, queueManager, destination, isDeadLetterQueue ? null : redeliveryPolicy, deadLetterPolicy);
        addContainer(container);
        if (started.get()) {
            container.start();           
        }
View Full Code Here

TOP

Related Classes of org.activemq.store.MessageStore

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.