| Interface | Description |
|---|---|
| AggregateEvent<E extends AggregateEvent<E>> |
The base type of
PersistentEntity events may implement this
interface to make the events available for read-side processing. |
| PersistentEntity.Persist<B extends Event> |
A command handler returns a
Persist directive that defines what event or events,
if any, to persist. |
| PersistentEntity.PersistNone<B extends Event> |
INTERNAL API
|
| PersistentEntity.ReplyType<R> |
Commands to a
PersistentEntity must implement this interface
to define the reply type. |
| PersistentEntityRegistry |
At system startup all
PersistentEntity classes must be registered here
with PersistentEntityRegistry.register(java.lang.Class<? extends com.lightbend.lagom.javadsl.persistence.PersistentEntity<C, E, S>>). |
| Class | Description |
|---|---|
| AggregateEventTag<Event extends AggregateEvent<Event>> |
The base type of
PersistentEntity events may implement this
interface to make the events available for read-side processing. |
| AggregateEventTag$ | |
| CommandEnvelope |
Commands to
PersistentEntity are wrapped in this envelope
when sent via PersistentEntityRef (i.e. |
| CommandEnvelope$ | |
| PersistenceModule |
Guice module for the Persistence API.
|
| PersistenceModule$ | |
| PersistentEntity<Command,Event,State> |
A
PersistentEntity has a stable entity identifier, with which
it can be accessed from anywhere in the cluster. |
| PersistentEntity.InvalidCommandException$ | |
| PersistentEntity.PersistException$ | |
| PersistentEntity.UnhandledCommandException$ | |
| PersistentEntity$ | |
| PersistentEntityRef<Command> |
Commands are sent to a
PersistentEntity using a
PersistentEntityRef. |
| Exception | Description |
|---|---|
| PersistentEntity.InvalidCommandException |
Standard exception when rejecting invalid commands.
|
| PersistentEntity.PersistException |
Exception that is used when persist fails.
|
| PersistentEntity.UnhandledCommandException |
Exception that is used when command is not handled
|