Class S3MetaRequestWrapper

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

@SdkInternalApi public class S3MetaRequestWrapper extends Object
A wrapper class that manages the lifecycle of the underlying S3MetaRequest. This class is needed to ensure we don't invoke methods on S3MetaRequest after it's closed, otherwise CRT will crash.
  • Constructor Details

    • S3MetaRequestWrapper

      public S3MetaRequestWrapper(software.amazon.awssdk.crt.s3.S3MetaRequest delegate)
  • Method Details

    • close

      public void close()
    • incrementReadWindow

      public void incrementReadWindow(long windowSize)
    • pause

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

      public CompletableFuture<software.amazon.awssdk.crt.s3.ResumeToken> pauseAsync()
      Asynchronously pauses the meta request. Unlike pause(), this is supported for GetObject as well as PutObject, and the returned future only completes once all in-flight work has settled, which for a download to a file means the file has been written and closed.
      Returns:
      a future completed with the resume token, or completed with null if the meta request has already been closed or CRT captured no resumable state.
    • cancel

      public void cancel()