Package io.github.resilience4j.core
Class EventProcessor<T>
- java.lang.Object
-
- io.github.resilience4j.core.EventProcessor<T>
-
- All Implemented Interfaces:
EventPublisher<T>
public class EventProcessor<T> extends java.lang.Object implements EventPublisher<T>
-
-
Constructor Summary
Constructors Constructor Description EventProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasConsumers()voidonEvent(EventConsumer<T> onEventConsumer)<E extends T>
booleanprocessEvent(E event)voidregisterConsumer(java.lang.String className, EventConsumer<? extends T> eventConsumer)
-
-
-
Method Detail
-
hasConsumers
public boolean hasConsumers()
-
registerConsumer
public void registerConsumer(java.lang.String className, EventConsumer<? extends T> eventConsumer)
-
processEvent
public <E extends T> boolean processEvent(E event)
-
onEvent
public void onEvent(@Nullable EventConsumer<T> onEventConsumer)
- Specified by:
onEventin interfaceEventPublisher<T>
-
-