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
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)
-
Constructor Details
-
EventProcessor
public EventProcessor()
-
-
Method Details
-
hasConsumers
public boolean hasConsumers() -
registerConsumer
-
processEvent
-
onEvent
- Specified by:
onEventin interfaceEventPublisher<T>
-