Package org.activemq.service

Examples of org.activemq.service.RedeliveryPolicy


        ConsumerInfo consumerInfo = createConsumerInfo();

        // lets register the subscription with the manager
        messageContainerManager.addMessageConsumer(client, consumerInfo);

        return new DurableTopicSubscription(new DispatcherImpl(), client, consumerInfo, filter, new RedeliveryPolicy(),new DeadLetterPolicy());
    }
View Full Code Here


        super.tearDown();
    }

    protected MessageContainerManager createMessageContainerManager() {
        if (destination.isTopic()) {
            return new DurableTopicMessageContainerManager(persistenceAapter, new DurableTopicSubscriptionContainerImpl(new RedeliveryPolicy(),new DeadLetterPolicy()), new FilterFactoryImpl(), new DispatcherImpl());
        }
        else {
            return new DurableQueueMessageContainerManager(persistenceAapter, new DurableTopicSubscriptionContainerImpl(new RedeliveryPolicy(),new DeadLetterPolicy()), new FilterFactoryImpl(), new DispatcherImpl());
        }
    }
View Full Code Here

        System.out.println("Created network channel: " + networkChannel);

        SecurityAdapter securityAdapter = broker.getSecurityAdapter();
        assertTrue("Should have created a security adapter", securityAdapter != null);

        RedeliveryPolicy redeliveryPolicy = broker.getRedeliveryPolicy();
        assertTrue("Should have created a redeliveryPolicy", redeliveryPolicy != null);
        assertEquals("isBackOffMode", true, redeliveryPolicy.isBackOffMode());
        assertEquals("getMaximumRetryCount", 10, redeliveryPolicy.getMaximumRetryCount());

        DiscoveryAgent discoveryAgent = container.getDiscoveryAgent();
        assertTrue("Have a discovery agent: " + discoveryAgent, discoveryAgent instanceof MulticastDiscoveryAgent);
        MulticastDiscoveryAgent multicastAgent = (MulticastDiscoveryAgent) discoveryAgent;
        assertEquals("getKeepAliveTimeout", 1000, multicastAgent.getKeepAliveTimeout());
View Full Code Here

     *
     * @throws JMSException
     */
    public void start() throws JMSException {
        if (redeliveryPolicy == null) {
            redeliveryPolicy = new RedeliveryPolicy();
        }
        if (deadLetterPolicy == null){
            deadLetterPolicy = new DeadLetterPolicy(this);
        }
        if (persistenceAdapter == null) {
View Full Code Here

     *
     * @throws JMSException
     */
    public void start() throws JMSException {
        if (redeliveryPolicy == null) {
            redeliveryPolicy = new RedeliveryPolicy();
        }
        if (deadLetterPolicy == null){
            deadLetterPolicy = new DeadLetterPolicy(this);
        }
        if (persistenceAdapter == null) {
View Full Code Here

        System.out.println("Created network channel: " + networkChannel);

        SecurityAdapter securityAdapter = broker.getSecurityAdapter();
        assertTrue("Should have created a security adapter", securityAdapter != null);

        RedeliveryPolicy redeliveryPolicy = broker.getRedeliveryPolicy();
        assertTrue("Should have created a redeliveryPolicy", redeliveryPolicy != null);
        assertEquals("isBackOffMode", true, redeliveryPolicy.isBackOffMode());
        assertEquals("getMaximumRetryCount", 10, redeliveryPolicy.getMaximumRetryCount());

        DiscoveryAgent discoveryAgent = container.getDiscoveryAgent();
        assertTrue("Have a discovery agent: " + discoveryAgent, discoveryAgent instanceof MulticastDiscoveryAgent);
        MulticastDiscoveryAgent multicastAgent = (MulticastDiscoveryAgent) discoveryAgent;
        assertEquals("getKeepAliveTimeout", 1000, multicastAgent.getKeepAliveTimeout());
View Full Code Here

*/
public class TransientTopicMessageContainerManager extends DurableTopicMessageContainerManager {
    private static final Log log = LogFactory.getLog(TransientTopicMessageContainerManager.class);

    public TransientTopicMessageContainerManager(PersistenceAdapter persistenceAdapter) {
        this(persistenceAdapter, new SubscriptionContainerImpl(new RedeliveryPolicy(), new DeadLetterPolicy()), new FilterFactoryImpl(), new DispatcherImpl());
    }
View Full Code Here

        ConsumerInfo consumerInfo = createConsumerInfo();

        // lets register the subscription with the manager
        messageContainerManager.addMessageConsumer(client, consumerInfo);

        return new DurableTopicSubscription(new DispatcherImpl(), client, consumerInfo, filter, new RedeliveryPolicy(),new DeadLetterPolicy());
    }
View Full Code Here

        super.tearDown();
    }

    protected MessageContainerManager createMessageContainerManager() {
        if (destination.isTopic()) {
            return new DurableTopicMessageContainerManager(persistenceAapter, new DurableTopicSubscriptionContainerImpl(new RedeliveryPolicy(),new DeadLetterPolicy()), new FilterFactoryImpl(), new DispatcherImpl());
        }
        else {
            return new DurableQueueMessageContainerManager(persistenceAapter, new DurableTopicSubscriptionContainerImpl(new RedeliveryPolicy(),new DeadLetterPolicy()), new FilterFactoryImpl(), new DispatcherImpl());
        }
    }
View Full Code Here

     *
     * @throws JMSException
     */
    public void start() throws JMSException {
        if (redeliveryPolicy == null) {
            redeliveryPolicy = new RedeliveryPolicy();
        }
        if (deadLetterPolicy == null){
            deadLetterPolicy = new DeadLetterPolicy(this);
        }
        if (persistenceAdapter == null) {
View Full Code Here

TOP

Related Classes of org.activemq.service.RedeliveryPolicy

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.