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);