A stream of the persistent events that have the given aggregateTag
, e.g.
A stream of the persistent events that have the given aggregateTag
, e.g.
all persistent events of all Order
entities.
The type of the offset is journal dependent, some journals use time-based
UUID offsets, while others use sequence numbers. The passed in fromOffset
must either be Offset#NONE, or an offset that has previously been produced
by this journal.
IllegalArgumentException
If the fromOffset
type is not supported
by this journal.
Gracefully stop the persistent entities and leave the cluster.
Gracefully stop the persistent entities and leave the cluster. The persistent entities will be started on another node when new messages are sent to them.
the CompletionStage
is completed when the node has been
removed from the cluster
Retrieve a PersistentEntityRef for a given PersistentEntity class and identifier.
Retrieve a PersistentEntityRef for a given PersistentEntity class
and identifier. Commands are sent to a PersistentEntity
using a PersistentEntityRef
.
At system startup all PersistentEntity classes must be registered with this method.
A stream of the persistent events that have the given aggregateTag
, e.g.
A stream of the persistent events that have the given aggregateTag
, e.g.
all persistent events of all Order
entities.
This method will only work with journals that support UUID offsets. Journals that produce sequence offsets will fail during stream handling.
(Since version 1.2.0) Use eventStream(AggregateEventTag, Offset) instead
At system startup all PersistentEntity classes must be registered here with PersistentEntityRegistry#register.
Later, PersistentEntityRef can be retrieved with PersistentEntityRegistry#refFor. Commands are sent to a PersistentEntity using a
PersistentEntityRef
.