com.atlassian.aws
Class Ec2ClientFactoryImpl

java.lang.Object
  extended by com.atlassian.aws.Ec2ClientFactoryImpl

public class Ec2ClientFactoryImpl
extends Object


Constructor Summary
Ec2ClientFactoryImpl()
           
Ec2ClientFactoryImpl(String endpoint)
           
 
Method Summary
 com.amazonaws.services.ec2.AmazonEC2Async newAmazonEc2Async(AwsSupportConstants.Region region, com.amazonaws.auth.AWSCredentials awsCredentials, ScheduledExecutorService scheduledExecutorService)
           
 com.amazonaws.services.ec2.AmazonEC2AsyncClient newAwsAsyncClient(AwsSupportConstants.Region region, com.amazonaws.auth.AWSCredentials awsCredentials, ScheduledExecutorService scheduledExecutorService)
           
 void setMaxRetries(int maxRetries)
          Sets maximum retries before the connection is considered dead.
 void setTransmissionTimeout(int transmissionTimeoutSeconds)
          Sets the timeout used for connection to host and transmission of data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ec2ClientFactoryImpl

public Ec2ClientFactoryImpl(@Nullable
                            String endpoint)

Ec2ClientFactoryImpl

public Ec2ClientFactoryImpl()
Method Detail

newAmazonEc2Async

@NotNull
public com.amazonaws.services.ec2.AmazonEC2Async newAmazonEc2Async(@NotNull
                                                                           AwsSupportConstants.Region region,
                                                                           @NotNull
                                                                           com.amazonaws.auth.AWSCredentials awsCredentials,
                                                                           @NotNull
                                                                           ScheduledExecutorService scheduledExecutorService)

newAwsAsyncClient

@NotNull
public com.amazonaws.services.ec2.AmazonEC2AsyncClient newAwsAsyncClient(@NotNull
                                                                                 AwsSupportConstants.Region region,
                                                                                 @NotNull
                                                                                 com.amazonaws.auth.AWSCredentials awsCredentials,
                                                                                 @NotNull
                                                                                 ScheduledExecutorService scheduledExecutorService)

setTransmissionTimeout

public void setTransmissionTimeout(int transmissionTimeoutSeconds)
Sets the timeout used for connection to host and transmission of data.

Parameters:
transmissionTimeoutSeconds - timeout in seconds

setMaxRetries

public void setMaxRetries(int maxRetries)
Sets maximum retries before the connection is considered dead. Defaults to five if not set.

Parameters:
maxRetries - the amount of retries


Copyright © 2015 Atlassian. All rights reserved.