public abstract class AWSConnectionProvider<AWS_CLIENT,AWS_ASYNC_CLIENT,AWS_CLIENT_BUILDER extends com.amazonaws.client.builder.AwsClientBuilder<AWS_CLIENT_BUILDER,AWS_CLIENT>,AWS_ASYNC_CLIENT_BUILDER extends com.amazonaws.client.builder.AwsAsyncClientBuilder<AWS_ASYNC_CLIENT_BUILDER,AWS_ASYNC_CLIENT>,CONNECTION extends AWSConnection<AWS_CLIENT,AWS_ASYNC_CLIENT>>
extends org.mule.connectors.commons.template.connection.ConnectorConnectionProvider
implements org.mule.runtime.api.connection.CachedConnectionProvider<CONNECTION>
| Constructor and Description |
|---|
AWSConnectionProvider(BiFunction<AWS_CLIENT,AWS_ASYNC_CLIENT,CONNECTION> connectionConstructor,
AWS_CLIENT_BUILDER clientBuilder,
AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendBuilderProperties(AWS_CLIENT_BUILDER clientBuilder,
AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder) |
protected void |
appendClientConfigurationProperties(com.amazonaws.ClientConfiguration configuration) |
protected void |
configureRegionProperty(AWS_CLIENT_BUILDER clientBuilder,
AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder) |
CONNECTION |
connect() |
void |
disconnect(CONNECTION connection) |
protected abstract com.amazonaws.auth.AWSCredentialsProvider |
getAWSCredentialsProvider(CommonParameters commonParameters) |
CommonParameters |
getCommonParameters() |
protected void |
onConnect(CONNECTION connection) |
void |
setCommonParameters(CommonParameters commonParameters) |
void |
setProxyParameterGroup(ProxyParameterGroup proxyParameterGroup) |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(CONNECTION connection) |
public AWSConnectionProvider(BiFunction<AWS_CLIENT,AWS_ASYNC_CLIENT,CONNECTION> connectionConstructor, AWS_CLIENT_BUILDER clientBuilder, AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder)
public CONNECTION connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<CONNECTION extends AWSConnection<AWS_CLIENT,AWS_ASYNC_CLIENT>>org.mule.runtime.api.connection.ConnectionExceptionprotected void onConnect(CONNECTION connection)
protected void appendBuilderProperties(AWS_CLIENT_BUILDER clientBuilder, AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder)
protected void configureRegionProperty(AWS_CLIENT_BUILDER clientBuilder, AWS_ASYNC_CLIENT_BUILDER asyncClientBuilder)
protected abstract com.amazonaws.auth.AWSCredentialsProvider getAWSCredentialsProvider(CommonParameters commonParameters)
protected void appendClientConfigurationProperties(com.amazonaws.ClientConfiguration configuration)
public void disconnect(CONNECTION connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<CONNECTION extends AWSConnection<AWS_CLIENT,AWS_ASYNC_CLIENT>>public org.mule.runtime.api.connection.ConnectionValidationResult validate(CONNECTION connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<CONNECTION extends AWSConnection<AWS_CLIENT,AWS_ASYNC_CLIENT>>public CommonParameters getCommonParameters()
public void setCommonParameters(CommonParameters commonParameters)
public void setProxyParameterGroup(ProxyParameterGroup proxyParameterGroup)
Copyright © 2019. All rights reserved.