Class Nexus
java.lang.Object
io.temporal.nexus.Nexus
This class contains methods exposing Temporal APIs for Nexus Operations
-
Method Summary
Modifier and TypeMethodDescriptionstatic NexusOperationContextCan be used to get information about a Nexus Operation.static RuntimeExceptionUse this to rethrow a checked exception from a Nexus Operation instead of adding the exception to a method signature.
-
Method Details
-
getOperationContext
Can be used to get information about a Nexus Operation. This static method relies on a thread-local variable and works only in the original Nexus thread. -
wrap
Use this to rethrow a checked exception from a Nexus Operation instead of adding the exception to a method signature.- Returns:
- Never returns; always throws. Throws original exception if e is
RuntimeExceptionorError.
-