Class S3MetaRequestPauseObservable

java.lang.Object
software.amazon.awssdk.services.s3.internal.crt.S3MetaRequestPauseObservable

@SdkInternalApi public class S3MetaRequestPauseObservable extends Object
An observable that notifies the observer S3CrtAsyncHttpClient to pause the request.
  • Constructor Details

    • S3MetaRequestPauseObservable

      public S3MetaRequestPauseObservable()
  • Method Details

    • subscribe

      public void subscribe(S3MetaRequestWrapper request)
      Subscribe S3MetaRequestWrapper to be potentially paused later.
    • pause

      public software.amazon.awssdk.crt.s3.ResumeToken pause()
      Pause the request
    • pauseAsync

      public CompletableFuture<software.amazon.awssdk.crt.s3.ResumeToken> pauseAsync()
      Asynchronously pause the request. Unlike pause(), 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 null if the request has not been subscribed yet or CRT captured no resumable state.