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 akka.persistence.query.NoOffset, or an offset that has previously been produced
by this journal.
The stream will begin with events starting after fromOffset
.
To resume an event stream, store the Offset
corresponding to the most
recently processed Event
, and pass that back as the value for
fromOffset
to start the stream from events following that one.
IllegalArgumentException
If the fromOffset
type is not supported
by this journal.
Retrieve a com.lightbend.lagom.scaladsl.persistence.PersistentEntityRef for a given com.lightbend.lagom.scaladsl.persistence.PersistentEntity class and identifier.
Retrieve a com.lightbend.lagom.scaladsl.persistence.PersistentEntityRef for a
given com.lightbend.lagom.scaladsl.persistence.PersistentEntity class
and identifier. Commands are sent to a PersistentEntity
using a PersistentEntityRef
.
At system startup all com.lightbend.lagom.scaladsl.persistence.PersistentEntity classes must be registered with this method.
At system startup all com.lightbend.lagom.scaladsl.persistence.PersistentEntity classes must be registered with this method.
The entityFactory
will be called when a new entity instance is to be created.
That will happen in another thread, so the entityFactory
must be thread-safe, e.g.
not close over shared mutable state that is not thread-safe.
No-op method that exists only for backward-compatibility reasons.
No-op method that exists only for backward-compatibility reasons. Lagom now uses Akka's CoordinatedShutdown to gracefully shut down all sharded entities, including Persistent Entities.
a completed Future
(Since version 1.4.0) This method has no effect and no longer needs to be called
At system startup all PersistentEntity classes must be registered here with PersistentEntityRegistry#register.
Later, com.lightbend.lagom.scaladsl.persistence.PersistentEntityRef can be retrieved with PersistentEntityRegistry#refFor. Commands are sent to a com.lightbend.lagom.scaladsl.persistence.PersistentEntity using a
PersistentEntityRef
.