Package kalix.javasdk.view
Interface View.UpdateEffect.Builder<S>
- Enclosing interface:
- View.UpdateEffect<S>
public static interface View.UpdateEffect.Builder<S>
-
Method Summary
Modifier and TypeMethodDescriptionTrigger an error for the event.ignore()
Ignore this event (and continue to process the next).updateState
(S newState)
-
Method Details
-
updateState
-
deleteState
View.UpdateEffect<S> deleteState() -
ignore
View.UpdateEffect<S> ignore()Ignore this event (and continue to process the next). -
error
Trigger an error for the event. Returning this effect is equivalent to throwing an exception from the handler and will lead to retrying processing of the same event until it is handled successfully.- Parameters:
description
- The description of the error.
-