Examples of UniquePropertyMessageEvictionStrategy


Examples of org.apache.activemq.broker.region.policy.UniquePropertyMessageEvictionStrategy

        ConstantPendingMessageLimitStrategy pendingMessageLimitStrategy = new ConstantPendingMessageLimitStrategy();
        pendingMessageLimitStrategy.setLimit(10);
        entry.setPendingMessageLimitStrategy(pendingMessageLimitStrategy);


        UniquePropertyMessageEvictionStrategy messageEvictionStrategy = new UniquePropertyMessageEvictionStrategy();
        messageEvictionStrategy.setPropertyName("sequenceI");
        entry.setMessageEvictionStrategy(messageEvictionStrategy);

        // let evicted messages disappear
        entry.setDeadLetterStrategy(null);
        policyEntries.add(entry);
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.