Package kalix.javasdk
Interface SideEffect
public interface SideEffect
A side effect.
-
Method Summary
Modifier and TypeMethodDescriptionDeferredCall<?, ?> call()The service call that is executed as this effect.static SideEffectof(DeferredCall serviceCall) Create a side effect of the given service call.static SideEffectof(DeferredCall serviceCall, boolean synchronous) Create a side effect of the given service call.booleanWhether this effect should be executed synchronously or not.
-
Method Details
-
call
DeferredCall<?,?> call()The service call that is executed as this effect. -
synchronous
boolean synchronous()Whether this effect should be executed synchronously or not. -
of
Create a side effect of the given service call.- Parameters:
serviceCall- The service call to effect.synchronous- Whether this effect should be executed synchronously.- Returns:
- The side effect.
-
of
Create a side effect of the given service call.- Parameters:
serviceCall- The service call to effect.- Returns:
- The side effect.
-