EmptyEventStore

public final class EmptyEventStore implements EventStore

An implementation of EventStore which never stores any events.

Constructors

Link copied to clipboard
public void EmptyEventStore()

Functions

Link copied to clipboard
public void append(Event event)
Appends the passed event to the history of events.
Link copied to clipboard
public void appendAll(Iterable<Event> events)
Appends the passed events to the history of events.
Link copied to clipboard
public void close()
Link copied to clipboard
public boolean isOpen()
Tells if the object is still open.
Link copied to clipboard
public boolean isRegistered()
Determines if this instance is already registered with a Bounded Context.
Link copied to clipboard
public void read(EventStreamQuery request, StreamObserver<Event> responseObserver)
Creates the stream with events matching the passed query.
Link copied to clipboard
public void registerWith(BoundedContext context)
Registers this instance as a part of the given Bounded Context.

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.