Package io.github.javactrl.kafka
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:
-
Field Summary
Fields inherited from class io.github.javactrl.rt.Unwind
head, payload -
Method Summary
Methods inherited from class io.github.javactrl.rt.Unwind
boundary, brk, brkValueMethods inherited from class io.github.javactrl.rt.CThrowable
fillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getLocalId
Gets identifier of this variable. Local ids are unique within thread's scope.- Returns:
- local identifier
-
getFullId
Gets unique identifier containing information about its thread and its local id- Returns:
- full identifier
-
get
Gets result of this variable This is a short-cut toWorkflowContext.current.get().await(this)- Returns:
- result
- Throws:
io.github.javactrl.rt.CThrowable- always to suspend the execution- See Also:
-