Package org.apache.activemq.broker.region.policy

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

Related Classes of org.apache.activemq.broker.region.policy.UniquePropertyMessageEvictionStrategy

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.