Package akka.javasdk.eventsourcedentity
Interface EventSourcedEntity.Effect.OnSuccessBuilder<S>
- Enclosing interface:
EventSourcedEntity.Effect<T>
public static interface EventSourcedEntity.Effect.OnSuccessBuilder<S>
-
Method Summary
Modifier and TypeMethodDescriptionDelete the entity.<T> EventSourcedEntity.Effect
<T> Reply after for examplepersist
event.<T> EventSourcedEntity.Effect
<T> Reply after for examplepersist
event.
-
Method Details
-
deleteEntity
EventSourcedEntity.Effect.OnSuccessBuilder<S> deleteEntity()Delete the entity. No addition events are allowed. To observe the deletion in consumers and views, persist a final event representing the deletion before triggering delete. -
thenReply
Reply after for examplepersist
event.- Type Parameters:
T
- The type of the message that must be returned by this call.- Parameters:
replyMessage
- Function to create the reply message from the new state.- Returns:
- A message reply.
-
thenReply
Reply after for examplepersist
event.- Type Parameters:
T
- The type of the message that must be returned by this call.- Parameters:
replyMessage
- Function to create the reply message from the new state.metadata
- The metadata for the message.- Returns:
- A message reply.
-