Interface EffectContext

    • Method Detail

      • effect

        default void effect​(ServiceCall effect)
        Invoke the referenced service call as an effect once this action is completed.

        The effect will be performed asynchronously, ie, the proxy won't wait for the effect to finish before sending the reply.

        ServiceCall instances can be created using the ServiceCallFactory obtained from any (including this) contexts Context.serviceCallFactory() method.

        Parameters:
        effect - The service call to make as an effect effect.
      • effect

        void effect​(ServiceCall effect,
                    boolean synchronous)
        Invoke the referenced service call as an effect once this action is completed.

        ServiceCall instances can be created using the ServiceCallFactory obtained from any (including this) contexts Context.serviceCallFactory() method.

        Parameters:
        effect - The service call to make as an effect effect.
        synchronous - Whether the effect should be performed synchronously (ie, wait till it has finished before sending a reply) or asynchronously.