Interface StorageDriverSelectContext


@Experimental public interface StorageDriverSelectContext
Context passed to StorageDriverSelector.

The SDK supplies the instance a selector receives. Members added here in later releases will carry a default, so an existing selector-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.
    • getNamespace

      @Nullable default String getNamespace()
      Namespace of the client or worker performing the store, or null when it is not available. Defaults to null.
    • getCancellationToken

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