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 boolean
hasConsumers()
void
onEvent(EventConsumer<T> onEventConsumer)
<E extends T>
booleanprocessEvent(E event)
void
registerConsumer(java.lang.String className, EventConsumer<? extends T> eventConsumer)
-
Constructor Details
-
EventProcessor
public EventProcessor()
-
-
Method Details
-
hasConsumers
public boolean hasConsumers() -
registerConsumer
-
processEvent
-
onEvent
- Specified by:
onEvent
in interfaceEventPublisher<T>
-