org.enodeframework.eventing.EventCommittingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.eventing;
import org.enodeframework.commanding.ProcessingCommand;
/**
* @author [email protected]
*/
public class EventCommittingContext {
private EventCommittingContextMailBox mailBox;
private DomainEventStream eventStream;
private ProcessingCommand processingCommand;
public EventCommittingContext(DomainEventStream eventStream, ProcessingCommand processingCommand) {
this.eventStream = eventStream;
this.processingCommand = processingCommand;
}
public DomainEventStream getEventStream() {
return eventStream;
}
public ProcessingCommand getProcessingCommand() {
return processingCommand;
}
public EventCommittingContextMailBox getMailBox() {
return mailBox;
}
public void setMailBox(EventCommittingContextMailBox mailBox) {
this.mailBox = mailBox;
}
}