Interface StorageDriverStoreContext


@Experimental public interface StorageDriverStoreContext
Context passed to StorageDriver.store(io.temporal.payload.storage.StorageDriverStoreContext, java.util.List<io.temporal.api.common.v1.Payload>) and StorageDriverSelector.

The SDK supplies the instance a driver receives. Members added here in later releases will carry a default, so an existing driver-side implementation keeps compiling and behaves as though the new member were absent.

  • Method Details

    • getTarget

      @Nullable StorageDriverTargetInfo getTarget()
      Identity of the workflow or activity the payload is being stored for, or null when it is not available.
    • getCancellationToken

      @Nonnull default CancellationToken<CancellationException> getCancellationToken()
      Token cancelled when the SDK abandons this store operation. Defaults to a token that is never cancelled.