Class ReplayBlockingEventHandlingComponent<E extends EventHandlingComponent & ResetHandlerRegistry<?>>

java.lang.Object
org.axonframework.messaging.eventhandling.DelegatingEventHandlingComponent
org.axonframework.messaging.eventhandling.replay.ReplayBlockingEventHandlingComponent<E>
Type Parameters:
E - the delegate EventHandlingComponent and ResetHandlerRegistry implementation
All Implemented Interfaces:
DescribableComponent, MessageHandler, EventHandler, EventHandlingComponent, ReplayStatusChangedHandler, ResetHandler, ResetHandlerRegistry<ReplayBlockingEventHandlingComponent<E>>

public class ReplayBlockingEventHandlingComponent<E extends EventHandlingComponent & ResetHandlerRegistry<?>> extends DelegatingEventHandlingComponent implements ResetHandlerRegistry<ReplayBlockingEventHandlingComponent<E>>
An EventHandlingComponent that blocks all event handling during replay.

This component wraps another EventHandlingComponent and prevents any events from being processed when the current TrackingToken indicates a replay is in progress (i.e., when the token is a ReplayToken).

The supportsReset() method returns true only if at least one ResetHandler has been registered through subscribe(ResetHandler).

Since:
5.1.0
Author:
Mateusz Nowak
See Also: