Interface ClientActionContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.RuntimeException fail​(java.lang.String errorMessage)
      Fail the command with the given message.
      void forward​(ServiceCall to)
      Instruct the proxy to forward handling of this command to another entity served by this stateful function.
    • Method Detail

      • fail

        java.lang.RuntimeException fail​(java.lang.String errorMessage)
        Fail the command with the given message.
        Parameters:
        errorMessage - The error message to send to the client.
      • forward

        void forward​(ServiceCall to)
        Instruct the proxy to forward handling of this command to another entity served by this stateful function.

        The command will be forwarded after successful completion of handling this command, including any persistence that this command does.

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

        Parameters:
        to - The service call to forward command processing to.