public static class ExceptionHandlers.RetrySendingExceptionHandler extends Object implements BiConsumer<Sender.SendContext,Exception>
Constructor and Description |
---|
RetrySendingExceptionHandler(Duration timeout,
Duration waitingTime,
Predicate<Throwable> predicate) |
RetrySendingExceptionHandler(Duration timeout,
Duration waitingTime,
Predicate<Throwable> predicate,
boolean failOnTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Sender.SendContext sendContext,
Exception e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public RetrySendingExceptionHandler(Duration timeout, Duration waitingTime, Predicate<Throwable> predicate)
public void accept(Sender.SendContext sendContext, Exception e)
accept
in interface BiConsumer<Sender.SendContext,Exception>