server
1.9.0
jvm
server
/
io.spine.server.event.store
/
EmptyEventStore
Empty
Event
Store
public
final
class
EmptyEventStore
implements
EventStore
An implementation of
EventStore
which never stores any events.
Members
Constructors
Empty
Event
Store
Link copied to clipboard
public
void
EmptyEventStore
(
)
Functions
append
Link copied to clipboard
public
void
append
(
Event event
)
Appends the passed event to the history of events.
append
All
Link copied to clipboard
public
void
appendAll
(
Iterable
<
Event
>
events
)
Appends the passed events to the history of events.
close
Link copied to clipboard
public
void
close
(
)
is
Open
Link copied to clipboard
public
boolean
isOpen
(
)
Tells if the object is still open.
is
Registered
Link copied to clipboard
public
boolean
isRegistered
(
)
Determines if this instance is already registered with a Bounded Context.
read
Link copied to clipboard
public
void
read
(
EventStreamQuery request
,
StreamObserver<Event> responseObserver
)
Creates the stream with events matching the passed query.
register
With
Link copied to clipboard
public
void
registerWith
(
BoundedContext
context
)
Registers this instance as a part of the given Bounded Context.
Inherited functions
check
Not
Registered
Link copied to clipboard
public
void
checkNotRegistered
(
)
Verifies that this instance is NOT registered yet.
check
Open
Link copied to clipboard
public
void
checkOpen
(
)
Ensures that the object is
open
.
check
Registered
Link copied to clipboard
public
void
checkRegistered
(
)
Verifies that this instance is already registered.