Class ActionResult

java.lang.Object
org.yamcs.actions.ActionResult

public class ActionResult extends Object
  • Constructor Details

    • ActionResult

      public ActionResult()
  • Method Details

    • complete

      public void complete()
      Complete successfully, without response message.

      Shortcut for complete(null)

    • complete

      public void complete(com.google.gson.JsonObject result)
      Complete successfully
      Parameters:
      result - the result value (may be null)
    • completeExceptionally

      public void completeExceptionally(Throwable t)
      Complete with an exception
    • future

      public CompletableFuture<com.google.gson.JsonObject> future()
      Return the underlying future.