Package akka.javasdk.keyvalueentity
Interface KeyValueEntity.Effect<T>
- Type Parameters:
T
- The type of the message that must be returned by this call.
- Enclosing class:
KeyValueEntity<S>
public static interface KeyValueEntity.Effect<T>
An Effect is a description of what the runtime needs to do after the command is handled.
You can think of it as a set of instructions you are passing to the runtime, which will process
the instructions on your behalf.
Each component defines its own effects, which are a set of predefined operations that match the capabilities of that component.
a KeyValueEntity Effect can either:
- update the entity state and send a reply to the caller
- directly reply to the caller if the command is not requesting any state change
- rejected the command by returning an error
- instruct the runtime to delete the entity
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Construct the effect that is returned by the command handler.static interface