Class CommandResponse.Completed

    • Constructor Detail

      • Completed

        public Completed​(Id runId,
                         Result result)
      • Completed

        public Completed​(Id runId)
        A java helper to construct a Completed response
        Parameters:
        runId - (undocumented)
    • Method Detail

      • runId

        public Id runId()
        Description copied from interface: CommandResponse
        A helper method to get the runId for this command response

        Specified by:
        runId in interface CommandResponse
        Returns:
        the runId of command for which this response is created
      • result

        public Result result()
      • hasResult

        public boolean hasResult()
        Check to see if this response has a result
        Returns:
        true if the response contains a non-empty result, false otherwise.