Package kalix.javasdk

Interface SideEffect


public interface SideEffect
A side effect.
  • Method Summary

    Modifier and Type
    Method
    Description
    The service call that is executed as this effect.
    static SideEffect
    of(DeferredCall serviceCall)
    Create a side effect of the given service call.
    static SideEffect
    of(DeferredCall serviceCall, boolean synchronous)
    Create a side effect of the given service call.
    boolean
    Whether 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

      static SideEffect of(DeferredCall serviceCall, boolean synchronous)
      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

      static SideEffect of(DeferredCall serviceCall)
      Create a side effect of the given service call.
      Parameters:
      serviceCall - The service call to effect.
      Returns:
      The side effect.