Class Var

java.lang.Object
java.lang.Throwable
io.github.javactrl.rt.CThrowable
io.github.javactrl.rt.Unwind
io.github.javactrl.kafka.Var
All Implemented Interfaces:
Serializable

public class Var extends io.github.javactrl.rt.Unwind
This represents a result of suspended continuation (similar to Java Future)
See Also:
  • Method Details

    • getLocalId

      public String getLocalId()
      Gets identifier of this variable. Local ids are unique within thread's scope.
      Returns:
      local identifier
    • getFullId

      public String getFullId()
      Gets unique identifier containing information about its thread and its local id
      Returns:
      full identifier
    • get

      public Object get() throws io.github.javactrl.rt.CThrowable
      Gets result of this variable This is a short-cut to WorkflowContext.current.get().await(this)
      Returns:
      result
      Throws:
      io.github.javactrl.rt.CThrowable - always to suspend the execution
      See Also:
      • WorkflowContext.await(Var)