use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setBackOffMultiplier.
public void setBackOffMultiplier(Double multiplier) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setBackOffMultiplier(multiplier);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setRetriesExhaustedLogLevel.
public void setRetriesExhaustedLogLevel(String level) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setRetriesExhaustedLogLevel(LoggingLevel.valueOf(level));
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setCollisionAvoidancePercent.
public void setCollisionAvoidancePercent(Double percent) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setCollisionAvoidancePercent(percent);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setLogRetryStackTrace.
public void setLogRetryStackTrace(Boolean log) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setLogRetryStackTrace(log);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setUseCollisionAvoidance.
public void setUseCollisionAvoidance(Boolean avoidance) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setUseCollisionAvoidance(avoidance);
}
Aggregations