org.axonframework.eventhandling.replay
Interface ReplayAware

All Known Implementing Classes:
AbstractReplayAwareSagaManager, AbstractSagaManager, AnnotatedSagaManager, AnnotationEventListenerAdapter, AsyncAnnotatedSagaManager, RunEventReplay.AnotherThreadPrintingEventListener, SimpleSagaManager

public interface ReplayAware

Interface indicating a component is aware of "replays". Typically, these will be Event Listeners that can rebuild their state based on Events stored in the Event Store.

Since:
2.0
Author:
Allard Buijze

Method Summary
 void afterReplay()
          Invoked when a replay has finished.
 void beforeReplay()
          Invoked when a replay is started.
 void onReplayFailed(Throwable cause)
          Invoked when a replay has failed due to an exception.
 

Method Detail

beforeReplay

void beforeReplay()
Invoked when a replay is started.


afterReplay

void afterReplay()
Invoked when a replay has finished.


onReplayFailed

void onReplayFailed(Throwable cause)
Invoked when a replay has failed due to an exception.

Parameters:
cause - The exception that stopped the replay;


Copyright © 2010-2016. All Rights Reserved.