Package org.apache.activemq.store.jpa.model.StoredSubscription

Examples of org.apache.activemq.store.jpa.model.StoredSubscription.SubscriptionId


    }

    public void recoverNextMessages(String clientId, String subscriptionName, int maxReturned, MessageRecoveryListener listener) throws Exception {
        EntityManager manager = adapter.beginEntityManager(null);
        try {
            SubscriptionId id = new SubscriptionId();
            id.setClientId(clientId);
            id.setSubscriptionName(subscriptionName);
            id.setDestination(destinationName);

            AtomicLong last = subscriberLastMessageMap.get(id);
            if (last == null) {
                StoredSubscription ss = findStoredSubscription(manager, clientId, subscriptionName);
                last = new AtomicLong(ss.getLastAckedId());
View Full Code Here


        }
        adapter.commitEntityManager(null, manager);
    }

    public void resetBatching(String clientId, String subscriptionName) {
        SubscriptionId id = new SubscriptionId();
        id.setClientId(clientId);
        id.setSubscriptionName(subscriptionName);
        id.setDestination(destinationName);

        subscriberLastMessageMap.remove(id);
    }
View Full Code Here

    }

    public void recoverNextMessages(String clientId, String subscriptionName, int maxReturned, MessageRecoveryListener listener) throws Exception {
        EntityManager manager = adapter.beginEntityManager(null);
        try {
            SubscriptionId id = new SubscriptionId();
            id.setClientId(clientId);
            id.setSubscriptionName(subscriptionName);
            id.setDestination(destinationName);

            AtomicLong last = subscriberLastMessageMap.get(id);
            if (last == null) {
                StoredSubscription ss = findStoredSubscription(manager, clientId, subscriptionName);
                last = new AtomicLong(ss.getLastAckedId());
View Full Code Here

        }
        adapter.commitEntityManager(null, manager);
    }

    public void resetBatching(String clientId, String subscriptionName) {
        SubscriptionId id = new SubscriptionId();
        id.setClientId(clientId);
        id.setSubscriptionName(subscriptionName);
        id.setDestination(destinationName);
        subscriberLastMessageMap.remove(id);
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.store.jpa.model.StoredSubscription.SubscriptionId

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.