Class StorageDriverActivityInfo

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

@Experimental public final class StorageDriverActivityInfo extends Object implements StorageDriverTargetInfo
Identity of the activity 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

    • StorageDriverActivityInfo

      public StorageDriverActivityInfo(@Nonnull String namespace, @Nullable String id, @Nullable String runId, @Nullable String type)
      Parameters:
      namespace - the activity's namespace; must not be null
      id - the activity ID, or null if not available
      runId - the activity run ID (standalone activities), or null if not available
      type - the activity 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