Package akka.javasdk.testkit
Interface KeyValueEntityResult<R>
- Type Parameters:
R
- The type of reply that is expected from invoking a command handler
public interface KeyValueEntityResult<R>
Represents the result of a KeyValueEntity handling a command when run in through the testkit.
Not for user extension, returned by the testkit.
-
Method Details
-
isReply
boolean isReply()- Returns:
- true if the call had an effect with a reply, false if not
-
getReply
R getReply()- Returns:
- The reply object from the handler if there was one. If the call had an effect without any reply an exception is thrown.
-
isError
boolean isError()- Returns:
- true if the call was an error, false if not
-
getError
String getError()The error description. If the result was not an error an exception is thrown -
stateWasUpdated
boolean stateWasUpdated()- Returns:
- true if the call updated the entity state
-
getUpdatedState
Object getUpdatedState()- Returns:
- The updated state. If the state was not updated an exception is thrown
-
stateWasDeleted
boolean stateWasDeleted()- Returns:
- true if the call deleted the entity
-