Class S3BackedPayloadStoreAsync
java.lang.Object
software.amazon.payloadoffloading.S3BackedPayloadStoreAsync
- All Implemented Interfaces:
PayloadStoreAsync
S3 based implementation for PayloadStoreAsync.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteOriginalPayload(String payloadPointer) Deletes the original payload using the given payloadPointer.getOriginalPayload(String payloadPointer) Retrieves the original payload using the given payloadPointer.storeOriginalPayload(String payload) Stores payload in a store that has higher payload size limit than that is supported by original payload store.storeOriginalPayload(String payload, String s3Key) Stores payload in a store that has higher payload size limit than that is supported by original payload store.
-
Constructor Details
-
S3BackedPayloadStoreAsync
-
-
Method Details
-
storeOriginalPayload
Description copied from interface:PayloadStoreAsyncStores payload in a store that has higher payload size limit than that is supported by original payload store.This call is asynchronous, and so documented return values and exceptions are propagated through the returned
CompletableFuture.- Specified by:
storeOriginalPayloadin interfacePayloadStoreAsync- Returns:
- future value of a pointer that must be used to retrieve the original payload later.
-
storeOriginalPayload
Description copied from interface:PayloadStoreAsyncStores payload in a store that has higher payload size limit than that is supported by original payload store.This call is asynchronous, and so documented return values and exceptions are propagated through the returned
CompletableFuture.- Specified by:
storeOriginalPayloadin interfacePayloadStoreAsync- Returns:
- future value of a pointer that must be used to retrieve the original payload later.
-
getOriginalPayload
Description copied from interface:PayloadStoreAsyncRetrieves the original payload using the given payloadPointer. The pointer must have been obtained usingPayloadStoreAsync.storeOriginalPayload(String)This call is asynchronous, and so documented return values and exceptions are propagated through the returned
CompletableFuture.- Specified by:
getOriginalPayloadin interfacePayloadStoreAsync- Returns:
- future value of the original payload
-
deleteOriginalPayload
Description copied from interface:PayloadStoreAsyncDeletes the original payload using the given payloadPointer. The pointer must have been obtained usingPayloadStoreAsync.storeOriginalPayload(String)This call is asynchronous, and so documented return values and exceptions are propagated through the returned
CompletableFuture.- Specified by:
deleteOriginalPayloadin interfacePayloadStoreAsync- Returns:
- future value that completes when the delete operation finishes
-