EventStore

public interface EventStore implements ContextAware, Closeable

A store of all events in a Bounded Context.

Inheritors

Functions

Link copied to clipboard
public abstract void append(Event event)
Appends the passed event to the history of events.
Link copied to clipboard
public abstract void appendAll(Iterable<Event> events)
Appends the passed events to the history of events.
Link copied to clipboard
public abstract void read(EventStreamQuery request, StreamObserver<Event> responseObserver)
Creates the stream with events matching the passed query.

Inherited functions

Link copied to clipboard
public void checkNotRegistered()
Verifies that this instance is NOT registered yet.
Link copied to clipboard
public void checkOpen()
Ensures that the object is open.
Link copied to clipboard
public void checkRegistered()
Verifies that this instance is already registered.
Link copied to clipboard
public abstract void close()
Link copied to clipboard
public abstract boolean isOpen()
Tells if the object is still open.
Link copied to clipboard
public abstract boolean isRegistered()
Determines if this instance is already registered with a Bounded Context.
Link copied to clipboard
public abstract void registerWith(BoundedContext context)
Registers this instance as a part of the given Bounded Context.