Package org.codehaus.activemq.message.util

Examples of org.codehaus.activemq.message.util.MemoryBoundedQueue


            doGarbageCollection();
        }
        TransientQueueBoundedMessageContainer container = (TransientQueueBoundedMessageContainer) containers
                .get(destination);
        if (container == null) {
            MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(client.toString());
            container = new TransientQueueBoundedMessageContainer(threadPool, queueManager, destination,
                    redeliveryPolicy, deadLetterPolicy);
            addContainer(container);
            if (started.get()) {
                container.start();
View Full Code Here


        ActiveMQDestination destination = info.getDestination();
        if (destination.isTopic()) {
            TransientTopicBoundedMessageContainer container = (TransientTopicBoundedMessageContainer) containers
                    .get(client);
            if (container == null) {
                MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(client.toString());
                container = new TransientTopicBoundedMessageContainer(this, client, queue);
                containers.put(client, container);
                if (started.get()) {
                    container.start();
                }
View Full Code Here

    public void addMessageConsumer(BrokerClient client, ConsumerInfo info) throws JMSException {
        if (info.getDestination().isTopic()) {
            TransientTopicBoundedMessageContainer container = (TransientTopicBoundedMessageContainer) containers
                    .get(client);
            if (container == null) {
                MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(client.toString());
                container = new TransientTopicBoundedMessageContainer(client, queue);
                containers.put(client, container);
                if (started.get()) {
                    container.start();
                }
View Full Code Here

     */
    public TransientQueueSubscription addConsumer(Filter filter, ConsumerInfo info, BrokerClient client)
            throws JMSException {
        TransientQueueSubscription ts = findMatch(info);
        if (ts == null) {
            MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(client.toString() + info.getConsumerId());
            ts = new TransientQueueSubscription(client, queue, filter, info);
            synchronized (subscriptions) {
                idleTimestamp = 0;
                subscriptions.add(ts);
                if (started.get()) {
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.message.util.MemoryBoundedQueue

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.