public interface EventStore extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
append(io.spine.core.Event event)
Appends the passed event to the history of events.
|
void |
appendAll(java.lang.Iterable<io.spine.core.Event> events)
Appends the passed events to the history of events.
|
void |
read(io.spine.server.event.EventStreamQuery request,
io.grpc.stub.StreamObserver<io.spine.core.Event> responseObserver)
Creates the stream with events matching the passed query.
|
void append(io.spine.core.Event event)
event
- the record to appendvoid appendAll(java.lang.Iterable<io.spine.core.Event> events)
If the passed Iterable
is empty, no action is performed.
If the passed Events belong to the different
tenants, an IllegalArgumentException
is thrown.
events
- the events to appendvoid read(io.spine.server.event.EventStreamQuery request, io.grpc.stub.StreamObserver<io.spine.core.Event> responseObserver)
request
- the query with filtering parameters for the event historyresponseObserver
- observer for the resulting stream