public class ToDoItem extends AbstractEventSourcedAggregateRoot
Constructor and Description |
---|
ToDoItem() |
ToDoItem(String id,
String description) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<? extends EventSourcedEntity> |
getChildEntities()
Returns a collection of event sourced entities directly referenced by this entity.
|
Object |
getIdentifier()
Returns the identifier of this aggregate.
|
protected void |
handle(DomainEventMessage eventMessage)
Apply state changes based on the given event.
|
void |
markCompleted() |
apply, apply, getVersion, initializeState
addEventRegistrationCallback, commitEvents, getLastCommittedEventSequenceNumber, getUncommittedEventCount, getUncommittedEvents, initializeEventStream, isDeleted, markDeleted, registerEvent, registerEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventRegistrationCallback, commitEvents, getUncommittedEventCount, getUncommittedEvents, isDeleted
public void markCompleted()
protected Iterable<? extends EventSourcedEntity> getChildEntities()
AbstractEventSourcedAggregateRoot
getChildEntities
in class AbstractEventSourcedAggregateRoot
protected void handle(DomainEventMessage eventMessage)
AbstractEventSourcedAggregateRoot
handle
in class AbstractEventSourcedAggregateRoot
eventMessage
- The event to handlepublic Object getIdentifier()
AggregateRoot
Copyright © 2010-2014. All Rights Reserved.