Interface StorageDriver
Stores and retrieves payloads in an external storage system.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Name of this driver instance, unique among the drivers registered in a singleExternalStorageOptions.getType()Stable, implementation-level identifier for this driver, the same across all instances of the driver class and ideally across SDKs (e.g.CompletableFuture<List<io.temporal.api.common.v1.Payload>> retrieve(StorageDriverRetrieveContext context, List<StorageDriverClaim> claims) Retrieves the payloads identified byclaimsand returns onePayloadper claim, in the same order.store(StorageDriverStoreContext context, List<io.temporal.api.common.v1.Payload> payloads) Storespayloadsand returns oneStorageDriverClaimper payload, in the same order.
-
Method Details
-
getName
Name of this driver instance, unique among the drivers registered in a singleExternalStorageOptions. Used as the routing key recorded in a stored payload's reference and resolved back to this driver on retrieval. -
getType
Stable, implementation-level identifier for this driver, the same across all instances of the driver class and ideally across SDKs (e.g."aws.s3driver"). Used for metrics and worker heartbeat reporting, so it must not be derived from anything that changes between versions or refactors. -
store
@Nonnull CompletableFuture<List<StorageDriverClaim>> store(@Nonnull StorageDriverStoreContext context, @Nonnull List<io.temporal.api.common.v1.Payload> payloads) Storespayloadsand returns oneStorageDriverClaimper payload, in the same order. The returned list must be the same length aspayloads. -
retrieve
@Nonnull CompletableFuture<List<io.temporal.api.common.v1.Payload>> retrieve(@Nonnull StorageDriverRetrieveContext context, @Nonnull List<StorageDriverClaim> claims) Retrieves the payloads identified byclaimsand returns onePayloadper claim, in the same order. The returned list must be the same length asclaims.
-