Package software.amazon.awssdk.crt.s3
Class S3Client
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.s3.S3Client
-
- All Implemented Interfaces:
AutoCloseable
public class S3Client extends CrtResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Constructor Summary
Constructors Constructor Description S3Client(S3ClientOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxActiveConnections()CompletableFuture<Void>getShutdownCompleteFuture()S3MetaRequestmakeMetaRequest(S3MetaRequestOptions options)-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addRef, addReferenceTo, close, close, collectNativeResource, collectNativeResources, decRef, decRef, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
-
-
-
Constructor Detail
-
S3Client
public S3Client(S3ClientOptions options) throws CrtRuntimeException
- Throws:
CrtRuntimeException
-
-
Method Detail
-
makeMetaRequest
public S3MetaRequest makeMetaRequest(S3MetaRequestOptions options)
-
getShutdownCompleteFuture
public CompletableFuture<Void> getShutdownCompleteFuture()
-
getMaxActiveConnections
public int getMaxActiveConnections()
- Returns:
- the maximum number of connections this client will keep active at once, across every endpoint it
talks to. The same value is additionally applied as the cap for each individual endpoint's connection pool.
Fixed for the lifetime of the client - derived from its configured throughput target, which
S3ClientOptions.withMaxConnections(int)can lower but not raise.
-
-