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 protected boolean
canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits.CompletableFuture<Void>
getShutdownCompleteFuture()
S3MetaRequest
makeMetaRequest(S3MetaRequestOptions options)
protected void
releaseNativeHandle()
Cleans up the native resources associated with this client.-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResources
-
-
-
-
Constructor Detail
-
S3Client
public S3Client(S3ClientOptions options) throws CrtRuntimeException
- Throws:
CrtRuntimeException
-
-
Method Detail
-
makeMetaRequest
public S3MetaRequest makeMetaRequest(S3MetaRequestOptions options)
-
canReleaseReferencesImmediately
protected boolean canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits. Resources that wait are responsible for calling releaseReferences() manually.- Specified by:
canReleaseReferencesImmediately
in classCrtResource
- Returns:
- true if this resource releases synchronously, false if this resource performs async shutdown
-
releaseNativeHandle
protected void releaseNativeHandle()
Cleans up the native resources associated with this client. The client is unusable after this call- Specified by:
releaseNativeHandle
in classCrtResource
-
getShutdownCompleteFuture
public CompletableFuture<Void> getShutdownCompleteFuture()
-
-