Class Nexus

java.lang.Object
io.temporal.nexus.Nexus

public final class Nexus extends Object
This class contains methods exposing Temporal APIs for Nexus Operations
  • Method Details

    • getOperationContext

      public static NexusOperationContext 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

      public static RuntimeException wrap(Throwable e)
      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 RuntimeException or Error.