private Double collisionAvoidanceFactor;
private Boolean useCollisionAvoidance;
public RedeliveryPolicy createRedeliveryPolicy(RedeliveryPolicy parentPolicy) {
RedeliveryPolicy answer = parentPolicy.copy();
// copy across the properties - if they are set
if (maximumRedeliveries != null) {
answer.setMaximumRedeliveries(maximumRedeliveries);
}
if (initialRedeliveryDelay != null) {
answer.setInitialRedeliveryDelay(initialRedeliveryDelay);
}
if (backOffMultiplier != null) {
answer.setBackOffMultiplier(backOffMultiplier);
}
if (useExponentialBackOff != null) {
answer.setUseExponentialBackOff(useExponentialBackOff);
}
if (collisionAvoidanceFactor != null) {
answer.setCollisionAvoidanceFactor(collisionAvoidanceFactor);
}
if (useCollisionAvoidance != null) {
answer.setUseCollisionAvoidance(useCollisionAvoidance);
}
return answer;
}