Package akka.javasdk.keyvalueentity
Interface KeyValueEntity.Effect<T>
- Type Parameters:
T
- The type of the message that must be returned by this call
- All Known Subinterfaces:
KeyValueEntity.ReadOnlyEffect<T>
- Enclosing class:
KeyValueEntity<S>
public static interface KeyValueEntity.Effect<T>
An Effect describes the actions that the Akka runtime should perform after a command handler
completes. Effects are declarative instructions that tell the runtime how to update state, send
replies, or handle errors.
Key Value Entity effects can:
- Update the entity state and send a reply to the caller
- Reply directly to the caller without state changes
- Return an error message to reject the command
- Delete the entity from storage
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for constructing effects that describe the actions to be performed after command processing.static interface
Builder for chaining a reply after a successful state operation likeupdateState
ordeleteEntity
.