All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.enodeframework.eventing.DomainEventStreamMessage Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy