public class CommitEntry extends Object
event entries
that are part of the same
UnitOfWork commit.Constructor and Description |
---|
CommitEntry(org.bson.Document dbObject,
CommitEntryConfiguration commitConfiguration,
EventEntryConfiguration eventConfiguration)
Creates a new CommitEntry based on data provided by Mongo.
|
CommitEntry(List<? extends DomainEventMessage<?>> events,
Serializer serializer)
Constructor used to create a new event entry to store in Mongo.
|
Modifier and Type | Method and Description |
---|---|
org.bson.Document |
asDocument(CommitEntryConfiguration commitConfiguration,
EventEntryConfiguration eventConfiguration)
Returns the current CommitEntry as a mongo Document.
|
EventEntry[] |
getEvents()
Returns the event entries stored as part of this commit.
|
public CommitEntry(List<? extends DomainEventMessage<?>> events, Serializer serializer)
serializer
- Serializer to use for the event to storeevents
- The events contained in this commitpublic CommitEntry(org.bson.Document dbObject, CommitEntryConfiguration commitConfiguration, EventEntryConfiguration eventConfiguration)
dbObject
- Mongo object that contains data to represent a CommitEntrycommitConfiguration
- commit entry specific configurationeventConfiguration
- event entry specific configurationpublic EventEntry[] getEvents()
public org.bson.Document asDocument(CommitEntryConfiguration commitConfiguration, EventEntryConfiguration eventConfiguration)
commitConfiguration
- Configuration of commit-specific properties on the documenteventConfiguration
- Configuration of event-related properties on the documentCopyright © 2010–2017. All rights reserved.