Class AbstractRegistry.RegistryEventProcessor
java.lang.Object
io.github.resilience4j.core.EventProcessor<RegistryEvent>
io.github.resilience4j.core.registry.AbstractRegistry.RegistryEventProcessor
- All Implemented Interfaces:
EventConsumer<RegistryEvent>,EventPublisher<RegistryEvent>,Registry.EventPublisher<E>
- Enclosing class:
AbstractRegistry<E,C>
private class AbstractRegistry.RegistryEventProcessor
extends EventProcessor<RegistryEvent>
implements EventConsumer<RegistryEvent>, Registry.EventPublisher<E>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateRegistryEventProcessor(List<RegistryEventConsumer<E>> registryEventConsumers) -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeEvent(RegistryEvent event) onEntryAdded(EventConsumer<EntryAddedEvent<E>> onSuccessEventConsumer) onEntryRemoved(EventConsumer<EntryRemovedEvent<E>> onErrorEventConsumer) onEntryReplaced(EventConsumer<EntryReplacedEvent<E>> onStateTransitionEventConsumer) Methods inherited from class io.github.resilience4j.core.EventProcessor
hasConsumers, onEvent, processEvent, registerConsumerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.resilience4j.core.EventPublisher
onEvent
-
Constructor Details
-
RegistryEventProcessor
private RegistryEventProcessor() -
RegistryEventProcessor
-
-
Method Details
-
onEntryAdded
public Registry.EventPublisher<E> onEntryAdded(EventConsumer<EntryAddedEvent<E>> onSuccessEventConsumer) - Specified by:
onEntryAddedin interfaceRegistry.EventPublisher<E>
-
onEntryRemoved
public Registry.EventPublisher<E> onEntryRemoved(EventConsumer<EntryRemovedEvent<E>> onErrorEventConsumer) - Specified by:
onEntryRemovedin interfaceRegistry.EventPublisher<E>
-
onEntryReplaced
public Registry.EventPublisher<E> onEntryReplaced(EventConsumer<EntryReplacedEvent<E>> onStateTransitionEventConsumer) - Specified by:
onEntryReplacedin interfaceRegistry.EventPublisher<E>
-
consumeEvent
- Specified by:
consumeEventin interfaceEventConsumer<RegistryEvent>
-