public static AmazonSQS getClient() {
		if (sqsClient != null) {
			return sqsClient;
		}
		if (Config.IN_PRODUCTION) {
			sqsClient = AmazonSQSClientBuilder.standard().build();
		} else {
			sqsClient = AmazonSQSClientBuilder.standard().
					withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials("x", "x"))).
					withEndpointConfiguration(new EndpointConfiguration(LOCAL_ENDPOINT, "")).build();
		}

		Para.addDestroyListener(new DestroyListener() {
			public void onDestroy() {
				sqsClient.shutdown();
			}
		});
		return sqsClient;
	}
public static AmazonSQS getClient ( ) { if ( sqsClient != null ) { return sqsClient ; } if ( Config . IN_PRODUCTION ) { sqsClient = AmazonSQSClientBuilder . standard ( ) . build ( ) ; } else { sqsClient = AmazonSQSClientBuilder . standard ( ) . withCredentials ( new AWSStaticCredentialsProvider ( new BasicAWSCredentials ( "x" , "x" ) ) ) . withEndpointConfiguration ( new EndpointConfiguration ( LOCAL_ENDPOINT , "" ) ) . build ( ) ; } Para . addDestroyListener ( new DestroyListener ( ) { public void onDestroy ( ) { sqsClient . shutdown ( ) ; } } ) ; return sqsClient ; }
Returns a client instance for AWS SQS.
@return a client that talks to SQS