Class LinkConverter

java.lang.Object
io.temporal.internal.common.LinkConverter

public class LinkConverter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.temporal.api.nexus.v1.Link
    activityToNexusLink(io.temporal.api.common.v1.Link.Activity activity)
     
    static io.temporal.api.nexus.v1.Link
    linkToNexusLink(io.temporal.api.common.v1.Link commonLink)
    Dispatches on the oneof variant of commonLink and converts to the matching Link.
    static io.temporal.api.common.v1.Link
    nexusLinkToActivity(io.temporal.api.nexus.v1.Link nexusLink)
     
    static io.temporal.api.common.v1.Link
    nexusLinkToLink(io.temporal.api.nexus.v1.Link nexusLink)
    Dispatches on Link.getType() and converts to the matching Link variant.
    static io.temporal.api.common.v1.Link
    nexusLinkToNexusOperation(io.temporal.api.nexus.v1.Link nexusLink)
     
    static io.temporal.api.common.v1.Link
    nexusLinkToWorkflowEvent(io.temporal.api.nexus.v1.Link nexusLink)
     
    static io.temporal.api.common.v1.Link
    nexusLinkToWorkflowLink(io.temporal.api.nexus.v1.Link nexusLink)
     
    static io.temporal.api.nexus.v1.Link
    nexusOperationToNexusLink(io.temporal.api.common.v1.Link.NexusOperation no)
     
    static io.temporal.api.nexus.v1.Link
    workflowEventToNexusLink(io.temporal.api.common.v1.Link.WorkflowEvent we)
     
    static io.temporal.api.nexus.v1.Link
    workflowLinkToNexusLink(io.temporal.api.common.v1.Link.Workflow w)
    Converts a Link.Workflow to a Nexus link.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LinkConverter

      public LinkConverter()
  • Method Details

    • workflowEventToNexusLink

      public static io.temporal.api.nexus.v1.Link workflowEventToNexusLink(io.temporal.api.common.v1.Link.WorkflowEvent we)
    • workflowLinkToNexusLink

      public static io.temporal.api.nexus.v1.Link workflowLinkToNexusLink(io.temporal.api.common.v1.Link.Workflow w)
      Converts a Link.Workflow to a Nexus link. A workflow link addresses a workflow execution as a whole rather than one event within it, so the URL uses the workflow path and carries no event path suffix and no reference query params. It is used when there is no history event to point at, for example a Query or a rejected Update. The optional reason explaining why the link exists is carried as a query param.
    • nexusLinkToWorkflowEvent

      public static io.temporal.api.common.v1.Link nexusLinkToWorkflowEvent(io.temporal.api.nexus.v1.Link nexusLink)
    • nexusLinkToWorkflowLink

      public static io.temporal.api.common.v1.Link nexusLinkToWorkflowLink(io.temporal.api.nexus.v1.Link nexusLink)
    • linkToNexusLink

      public static io.temporal.api.nexus.v1.Link linkToNexusLink(io.temporal.api.common.v1.Link commonLink)
      Dispatches on the oneof variant of commonLink and converts to the matching Link. Returns null if no variant is set or encoding fails.
    • nexusLinkToLink

      public static io.temporal.api.common.v1.Link nexusLinkToLink(io.temporal.api.nexus.v1.Link nexusLink)
      Dispatches on Link.getType() and converts to the matching Link variant. Returns null for unknown or unparseable types.
    • activityToNexusLink

      public static io.temporal.api.nexus.v1.Link activityToNexusLink(io.temporal.api.common.v1.Link.Activity activity)
    • nexusLinkToActivity

      public static io.temporal.api.common.v1.Link nexusLinkToActivity(io.temporal.api.nexus.v1.Link nexusLink)
    • nexusOperationToNexusLink

      public static io.temporal.api.nexus.v1.Link nexusOperationToNexusLink(io.temporal.api.common.v1.Link.NexusOperation no)
    • nexusLinkToNexusOperation

      public static io.temporal.api.common.v1.Link nexusLinkToNexusOperation(io.temporal.api.nexus.v1.Link nexusLink)