org.axonframework.quickstart.saga
Class ToDoSaga
java.lang.Object
org.axonframework.saga.annotation.AbstractAnnotatedSaga
org.axonframework.quickstart.saga.ToDoSaga
- All Implemented Interfaces:
- Serializable, Saga
public class ToDoSaga
- extends AbstractAnnotatedSaga
- Author:
- Allard Buijze
- See Also:
- Serialized Form
Methods inherited from class org.axonframework.saga.annotation.AbstractAnnotatedSaga |
associateWith, associateWith, associateWith, end, getAssociationValues, getSagaIdentifier, handle, isActive, registerParameterResolverFactory, removeAssociationWith, removeAssociationWith, removeAssociationWith |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToDoSaga
public ToDoSaga()
onToDoItemCreated
@StartSaga
@SagaEventHandler(associationProperty="todoId")
public void onToDoItemCreated(ToDoItemCreatedEvent event)
onDeadlineExpired
@SagaEventHandler(associationProperty="todoId")
public void onDeadlineExpired(ToDoItemDeadlineExpiredEvent event)
onToDoItemCompleted
@EndSaga
@SagaEventHandler(associationProperty="todoId")
public void onToDoItemCompleted(ToDoItemCompletedEvent event)
setCommandGateway
public void setCommandGateway(CommandGateway commandGateway)
setEventScheduler
public void setEventScheduler(EventScheduler eventScheduler)
Copyright © 2010-2016. All Rights Reserved.