|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartialStreamSupport
Interface implemented by Event Stores that support reading partial event streams.
Method Summary | |
---|---|
DomainEventStream |
readEvents(String type,
Object identifier,
long firstSequenceNumber)
Returns a Stream containing events for the aggregate identified by the given type and identifier , starting at the event with the given firstSequenceNumber (included). |
DomainEventStream |
readEvents(String type,
Object identifier,
long firstSequenceNumber,
long lastSequenceNumber)
Returns a Stream containing events for the aggregate identified by the given type and identifier , starting at the event with the given firstSequenceNumber (included) up to and including the
event with given lastSequenceNumber . |
Method Detail |
---|
DomainEventStream readEvents(String type, Object identifier, long firstSequenceNumber)
type
and identifier
, starting at the event with the given firstSequenceNumber
(included).
The returned stream will not contain any snapshot events.
type
- The type identifier of the aggregateidentifier
- The identifier of the aggregatefirstSequenceNumber
- The sequence number of the first event to find
DomainEventStream readEvents(String type, Object identifier, long firstSequenceNumber, long lastSequenceNumber)
type
and identifier
, starting at the event with the given firstSequenceNumber
(included) up to and including the
event with given lastSequenceNumber
.
If no event with given lastSequenceNumber
exists, the returned stream will simply read until the end of
the aggregate's events.
The returned stream will not contain any snapshot events.
type
- The type identifier of the aggregateidentifier
- The identifier of the aggregatefirstSequenceNumber
- The sequence number of the first event to findlastSequenceNumber
- The sequence number of the last event in the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |