|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.saga.AbstractReplayAwareSagaManager
public abstract class AbstractReplayAwareSagaManager
Abstract implementation of the SagaManager interface that provides basic functionality required by most SagaManager implementations. Provides support for dealing with event replays.
Constructor Summary | |
---|---|
AbstractReplayAwareSagaManager()
|
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. |
void |
setReplayable(boolean replayable)
Sets whether or not to allow event replay on managed Sagas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.axonframework.saga.SagaManager |
---|
handle |
Methods inherited from interface org.axonframework.eventhandling.EventListenerProxy |
---|
getTargetType |
Constructor Detail |
---|
public AbstractReplayAwareSagaManager()
Method Detail |
---|
public void setReplayable(boolean replayable)
false
the saga manager will
throw an IllegalStateException
before a replay is started. Defaults to false
.
replayable
- whether or not to allow event replays on managed Sagas.public void beforeReplay()
ReplayAware
beforeReplay
in interface ReplayAware
public void afterReplay()
ReplayAware
afterReplay
in interface ReplayAware
public void onReplayFailed(Throwable cause)
ReplayAware
onReplayFailed
in interface ReplayAware
cause
- The exception that stopped the replay;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |