Constructor and Description |
---|
AwsV2Util() |
Modifier and Type | Method and Description |
---|---|
static software.amazon.awssdk.http.async.SdkAsyncHttpClient |
createHttpClient(com.amazonaws.ClientConfiguration config,
software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder,
Properties consumerConfig) |
static software.amazon.awssdk.services.kinesis.KinesisAsyncClient |
createKinesisAsyncClient(Properties configProps,
com.amazonaws.ClientConfiguration clientConfiguration,
software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
Creates an Amazon Kinesis Async Client from the provided properties.
|
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getCredentialsProvider(Properties configProps)
Return a
AWSCredentialsProvider instance corresponding to the configuration
properties. |
static software.amazon.awssdk.regions.Region |
getRegion(Properties configProps)
Creates a
Region object from the given Properties. |
static boolean |
isEagerEfoRegistrationType(Properties properties) |
static boolean |
isLazyEfoRegistrationType(Properties properties) |
static boolean |
isNoneEfoRegistrationType(Properties properties) |
static boolean |
isRecoverableException(Exception e) |
static boolean |
isUsingEfoRecordPublisher(Properties properties) |
public static software.amazon.awssdk.services.kinesis.KinesisAsyncClient createKinesisAsyncClient(Properties configProps, com.amazonaws.ClientConfiguration clientConfiguration, software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
configProps
- configuration propertiesclientConfiguration
- the AWS SDK v1.X config ported to V2 to instantiate the clienthttpClient
- the underlying HTTP client used to talk to Kinesispublic static software.amazon.awssdk.http.async.SdkAsyncHttpClient createHttpClient(com.amazonaws.ClientConfiguration config, software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient.Builder httpClientBuilder, Properties consumerConfig)
public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getCredentialsProvider(Properties configProps)
AWSCredentialsProvider
instance corresponding to the configuration
properties.configProps
- the configuration propertiespublic static software.amazon.awssdk.regions.Region getRegion(Properties configProps)
Region
object from the given Properties.configProps
- the properties containing the regionpublic static boolean isRecoverableException(Exception e)
public static boolean isUsingEfoRecordPublisher(Properties properties)
public static boolean isEagerEfoRegistrationType(Properties properties)
public static boolean isLazyEfoRegistrationType(Properties properties)
public static boolean isNoneEfoRegistrationType(Properties properties)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.