Class S3MetaRequestPauseObservable
java.lang.Object
software.amazon.awssdk.services.s3.internal.crt.S3MetaRequestPauseObservable
An observable that notifies the observer
S3CrtAsyncHttpClient to pause the request.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.crt.s3.ResumeTokenpause()Pause the requestCompletableFuture<software.amazon.awssdk.crt.s3.ResumeToken> Asynchronously pause the request.voidsubscribe(S3MetaRequestWrapper request) SubscribeS3MetaRequestWrapperto be potentially paused later.
-
Constructor Details
-
S3MetaRequestPauseObservable
public S3MetaRequestPauseObservable()
-
-
Method Details
-
subscribe
SubscribeS3MetaRequestWrapperto be potentially paused later. -
pause
public software.amazon.awssdk.crt.s3.ResumeToken pause()Pause the request -
pauseAsync
Asynchronously pause the request. Unlikepause(), this is supported for GetObject as well as PutObject, and the returned future only completes once CRT has finished any in-flight work.- Returns:
- a future completed with the resume token, or completed with
nullif the request has not been subscribed yet or CRT captured no resumable state.
-