Class EventProcessor<T>

java.lang.Object
io.github.resilience4j.core.EventProcessor<T>
All Implemented Interfaces:
EventPublisher<T>

public class EventProcessor<T> extends Object implements EventPublisher<T>
  • Constructor Details

    • EventProcessor

      public EventProcessor()
  • Method Details

    • hasConsumers

      public boolean hasConsumers()
    • registerConsumer

      public void registerConsumer(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:
      onEvent in interface EventPublisher<T>