use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setMaximumRedeliveryDelay.
public void setMaximumRedeliveryDelay(Long delay) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setMaximumRedeliveryDelay(delay);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setLogExhausted.
public void setLogExhausted(Boolean log) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setLogExhausted(log);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setRedeliveryDelay.
public void setRedeliveryDelay(Long delay) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setRedeliveryDelay(delay);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setLogNewException.
public void setLogNewException(Boolean log) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setLogNewException(log);
}
use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.
the class ManagedErrorHandler method setDelayPattern.
public void setDelayPattern(String pattern) {
if (!isSupportRedelivery()) {
throw new IllegalArgumentException("This error handler does not support redelivery");
}
RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
redelivery.getRedeliveryPolicy().setDelayPattern(pattern);
}
Aggregations