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
    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
    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.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)
     

    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)
    • nexusLinkToWorkflowEvent

      public static io.temporal.api.common.v1.Link nexusLinkToWorkflowEvent(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.
    • 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)