Package io.github.resilience4j.retry
Interface Retry.EventPublisher
-
- All Superinterfaces:
io.github.resilience4j.core.EventPublisher<RetryEvent>
- Enclosing interface:
- Retry
public static interface Retry.EventPublisher extends io.github.resilience4j.core.EventPublisher<RetryEvent>
An EventPublisher which subscribes to the reactive stream of RetryEvents and can be used to register event consumers.To understand when the handlers are called, see the documentation of the respective events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Retry.EventPublisheronError(io.github.resilience4j.core.EventConsumer<RetryOnErrorEvent> eventConsumer)Retry.EventPublisheronIgnoredError(io.github.resilience4j.core.EventConsumer<RetryOnIgnoredErrorEvent> eventConsumer)Retry.EventPublisheronRetry(io.github.resilience4j.core.EventConsumer<RetryOnRetryEvent> eventConsumer)Retry.EventPublisheronSuccess(io.github.resilience4j.core.EventConsumer<RetryOnSuccessEvent> eventConsumer)
-
-
-
Method Detail
-
onRetry
Retry.EventPublisher onRetry(io.github.resilience4j.core.EventConsumer<RetryOnRetryEvent> eventConsumer)
-
onSuccess
Retry.EventPublisher onSuccess(io.github.resilience4j.core.EventConsumer<RetryOnSuccessEvent> eventConsumer)
-
onError
Retry.EventPublisher onError(io.github.resilience4j.core.EventConsumer<RetryOnErrorEvent> eventConsumer)
-
onIgnoredError
Retry.EventPublisher onIgnoredError(io.github.resilience4j.core.EventConsumer<RetryOnIgnoredErrorEvent> eventConsumer)
-
-