Class StorageDriverWorkflowInfo

java.lang.Object
io.temporal.payload.storage.StorageDriverWorkflowInfo
All Implemented Interfaces:
StorageDriverTargetInfo

@Experimental public final class StorageDriverWorkflowInfo extends Object implements StorageDriverTargetInfo
Identity of the workflow a payload is being stored on behalf of. Provided to a StorageDriver via StorageDriverStoreContext.getTarget(). All fields except namespace are best-effort and may be null when not available at store time.
  • Constructor Details

    • StorageDriverWorkflowInfo

      public StorageDriverWorkflowInfo(@Nonnull String namespace, @Nullable String id, @Nullable String runId, @Nullable String type)
      Parameters:
      namespace - the workflow's namespace; must not be null
      id - the workflow ID, or null if not available
      runId - the workflow run ID, or null if not available
      type - the workflow type name, or null if not available
  • Method Details

    • getNamespace

      @Nonnull public String getNamespace()
    • getId

      @Nullable public String getId()
    • getRunId

      @Nullable public String getRunId()
    • getType

      @Nullable public String getType()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object