Package software.amazon.nio.spi.s3
Class S3ClientProvider
- java.lang.Object
-
- software.amazon.nio.spi.s3.S3ClientProvider
-
public class S3ClientProvider extends java.lang.ObjectCreates async S3 clients used by this library.
-
-
Field Summary
Fields Modifier and Type Field Description protected software.amazon.awssdk.services.s3.S3CrtAsyncClientBuilderasyncClientBuilderDefault S3CrtAsyncClientBuilderprotected S3NioSpiConfigurationconfigurationConfigurationprotected software.amazon.awssdk.services.s3.S3AsyncClientuniversalClientDeprecated.
-
Constructor Summary
Constructors Constructor Description S3ClientProvider(S3NioSpiConfiguration c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncClientBuilder(software.amazon.awssdk.services.s3.S3CrtAsyncClientBuilder builder)protected software.amazon.awssdk.services.s3.S3AsyncClientgenerateClient(java.lang.String bucket)Generates a sync client for the named bucket using a client configured by the default region configuration chain.
-
-
-
Field Detail
-
universalClient
@Deprecated protected software.amazon.awssdk.services.s3.S3AsyncClient universalClient
Deprecated.Default asynchronous client using the "..." endpoint
-
configuration
protected final S3NioSpiConfiguration configuration
Configuration
-
asyncClientBuilder
protected software.amazon.awssdk.services.s3.S3CrtAsyncClientBuilder asyncClientBuilder
Default S3CrtAsyncClientBuilder
-
-
Constructor Detail
-
S3ClientProvider
public S3ClientProvider(S3NioSpiConfiguration c)
-
-
Method Detail
-
asyncClientBuilder
public void asyncClientBuilder(software.amazon.awssdk.services.s3.S3CrtAsyncClientBuilder builder)
-
generateClient
protected software.amazon.awssdk.services.s3.S3AsyncClient generateClient(java.lang.String bucket)
Generates a sync client for the named bucket using a client configured by the default region configuration chain.- Parameters:
bucket- the named of the bucket to make the client for- Returns:
- an S3 client appropriate for the region of the named bucket
-
-