use of org.apache.activemq.broker.region.policy.FixedCountSubscriptionRecoveryPolicy in project activemq-artemis by apache.
the class BrokerTestSupport method getDefaultPolicy.
protected PolicyEntry getDefaultPolicy() {
PolicyEntry policy = new PolicyEntry();
policy.setDispatchPolicy(new RoundRobinDispatchPolicy());
policy.setSubscriptionRecoveryPolicy(new FixedCountSubscriptionRecoveryPolicy());
return policy;
}
use of org.apache.activemq.broker.region.policy.FixedCountSubscriptionRecoveryPolicy in project activemq-artemis by apache.
the class SimpleDispatchPolicyTest method createBroker.
@Override
protected BrokerService createBroker() throws Exception {
BrokerService broker = super.createBroker();
PolicyEntry policy = new PolicyEntry();
policy.setDispatchPolicy(new SimpleDispatchPolicy());
policy.setSubscriptionRecoveryPolicy(new FixedCountSubscriptionRecoveryPolicy());
PolicyMap pMap = new PolicyMap();
pMap.setDefaultEntry(policy);
broker.setDestinationPolicy(pMap);
return broker;
}
Aggregations