use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setRetryAttemptedLogLevel.
public void setRetryAttemptedLogLevel(String level) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setRetryAttemptedLogLevel(LoggingLevel.valueOf(level));
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setLogExhaustedMessageBody.
public void setLogExhaustedMessageBody(Boolean log) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setLogExhaustedMessageBody(log);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setLogExhaustedMessageHistory.
public void setLogExhaustedMessageHistory(Boolean log) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setLogExhaustedMessageHistory(log);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setAllowRedeliveryWhileStopping.
public void setAllowRedeliveryWhileStopping(Boolean allow) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setAllowRedeliveryWhileStopping(allow);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setCollisionAvoidanceFactor.
public void setCollisionAvoidanceFactor(Double factor) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setCollisionAvoidanceFactor(factor);
}
Aggregations