org.enodeframework.eventing.DomainEventStreamMessage 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 com.google.common.collect.Lists;
import org.enodeframework.messaging.Message;
import java.util.List;
import java.util.Map;
/**
* @author [email protected]
*/
public class DomainEventStreamMessage extends Message {
public String aggregateRootId;
public String aggregateRootTypeName;
public int version;
private String commandId;
private List> events = Lists.newArrayList();
public DomainEventStreamMessage() {
}
public DomainEventStreamMessage(String commandId, String aggregateRootId, int version, String aggregateRootTypeName, List> events, Map items) {
this.commandId = commandId;
this.aggregateRootId = aggregateRootId;
this.aggregateRootTypeName = aggregateRootTypeName;
this.version = version;
this.events = events;
this.items = items;
}
public String getCommandId() {
return commandId;
}
public void setCommandId(String commandId) {
this.commandId = commandId;
}
public String getAggregateRootId() {
return aggregateRootId;
}
public void setAggregateRootId(String aggregateRootId) {
this.aggregateRootId = aggregateRootId;
}
public String getAggregateRootTypeName() {
return aggregateRootTypeName;
}
public void setAggregateRootTypeName(String aggregateRootTypeName) {
this.aggregateRootTypeName = aggregateRootTypeName;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public List> getEvents() {
return events;
}
public void setEvents(List> events) {
this.events = events;
}
}