Package org.yamcs.actions
Class ActionResult
java.lang.Object
org.yamcs.actions.ActionResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
Complete successfully, without response message.void
complete
(com.google.gson.JsonObject result) Complete successfullyvoid
Complete with an exceptionCompletableFuture<com.google.gson.JsonObject>
future()
Return the underlying future.
-
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
Complete with an exception -
future
Return the underlying future.
-