Class AbstractAwsAsyncProcessor<T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processors.aws.v2.AbstractAwsProcessor<T>
org.apache.nifi.processors.aws.v2.AbstractAwsAsyncProcessor<T,U>
- Type Parameters:
T- client typeU- client builder type
- All Implemented Interfaces:
ConfigurableComponent,Processor,VerifiableProcessor
public abstract class AbstractAwsAsyncProcessor<T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
extends AbstractAwsProcessor<T>
Base class for aws async client processors using the AWS v2 SDK.
- See Also:
-
Field Summary
Fields inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
AWS_CREDENTIALS_PROVIDER_SERVICE, DEFAULT_USER_AGENT, ENDPOINT_OVERRIDE, PROXY_CONFIGURATION_SERVICE, REGION, REL_FAILURE, REL_SUCCESS, SSL_CONTEXT_SERVICE, TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <B extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder>
voidconfigureHttpClient(B clientBuilder, ProcessContext context) Configure the http client on the builder.createClient(ProcessContext context, software.amazon.awssdk.regions.Region region) Creates the AWS SDK client.protected abstract UcreateClientBuilder(ProcessContext context) Construct the AWS SDK client builder and perform any service-specific configuration of the builder.private software.amazon.awssdk.http.async.SdkAsyncHttpClientcreateSdkAsyncHttpClient(ProcessContext context) Methods inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
configureClientBuilder, configureClientBuilder, configureEndpoint, configureSdkHttpClient, createClient, getClient, getClient, getCredentialsProvider, getRegion, getRelationships, migrateProperties, onScheduled, onStopped, onTrigger, onTrigger, verifyMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateRelationships
-
Constructor Details
-
AbstractAwsAsyncProcessor
public AbstractAwsAsyncProcessor()
-
-
Method Details
-
createClientBuilder
Construct the AWS SDK client builder and perform any service-specific configuration of the builder.- Parameters:
context- The process context- Returns:
- The SDK client builder
-
createClient
Creates the AWS SDK client.- Specified by:
createClientin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>- Parameters:
context- The process contextregion- the AWS Region- Returns:
- The created client
-
configureHttpClient
protected <B extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder> void configureHttpClient(B clientBuilder, ProcessContext context) Description copied from class:AbstractAwsProcessorConfigure the http client on the builder.- Specified by:
configureHttpClientin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>- Type Parameters:
B- The builder type- Parameters:
clientBuilder- The client buildercontext- The process context
-
createSdkAsyncHttpClient
private software.amazon.awssdk.http.async.SdkAsyncHttpClient createSdkAsyncHttpClient(ProcessContext context)
-