Interface Timer.EventPublisher
- All Superinterfaces:
io.github.resilience4j.core.EventPublisher<TimerEvent>
- All Known Implementing Classes:
TimerEventProcessor
- Enclosing interface:
- Timer
public static interface Timer.EventPublisher
extends io.github.resilience4j.core.EventPublisher<TimerEvent>
An EventPublisher which subscribes to the reactive stream of TimerEvents and can be used to
register event consumers.
To understand when the handlers are called, see the documentation of the respective events.
-
Method Summary
Modifier and TypeMethodDescriptiononFailure(io.github.resilience4j.core.EventConsumer<TimerOnFailureEvent> eventConsumer) onStart(io.github.resilience4j.core.EventConsumer<TimerOnStartEvent> eventConsumer) onSuccess(io.github.resilience4j.core.EventConsumer<TimerOnSuccessEvent> eventConsumer) Methods inherited from interface io.github.resilience4j.core.EventPublisher
onEvent
-
Method Details
-
onStart
Timer.EventPublisher onStart(io.github.resilience4j.core.EventConsumer<TimerOnStartEvent> eventConsumer) -
onSuccess
Timer.EventPublisher onSuccess(io.github.resilience4j.core.EventConsumer<TimerOnSuccessEvent> eventConsumer) -
onFailure
Timer.EventPublisher onFailure(io.github.resilience4j.core.EventConsumer<TimerOnFailureEvent> eventConsumer)
-