@@ -0,0 +1,1088 @@
+package org.jeeventstore.core;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Iterator;%0Aimport java.util.UUID;%0A%0A/**%0A * A ChangeSet represents a series of events that form a single, consistent%0A * unit within the given event stream. The events within a ChangeSet are%0A * stored in an atomic operation: The events in a ChangeSet can either be%0A * applied to the event stream as a whole, or none of the events are applied.%0A * @author alex%0A */%0Apublic interface ChangeSet extends Serializable %7B%0A%0A    /**%0A     * Identifies the bucket to which the ChangeSet and the event stream belong.%0A     * @return %0A     */%0A    String bucketId();%0A%0A    /**%0A     * Identifies the event stream to which the ChangeSet belongs.%0A     */%0A    String streamId();%0A%0A    /**%0A     * The version of the event stream to which this ChangeSet applies.%0A     */%0A    long streamVersion();%0A%0A    /**%0A     * A unique identifier for this ChangeSet within the stream.%0A     */%0A    UUID changeSetId();%0A    %0A    /**%0A     * Gets an iterator to the events contained within this ChangeSet.%0A     */%0A    Iterator%3CSerializable%3E events();%0A    %0A%7D%0A

Add ChangeSet