List of usage examples for com.amazonaws.services.sns AmazonSNSAsyncClient AmazonSNSAsyncClient
@Deprecated
public AmazonSNSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
From source file:com.carrotgarden.log4j.aws.sns.Appender.java
License:BSD License
/** instantiate amazon client */ protected boolean ensureAmazonClient() { try {/* ww w . j a va2 s. co m*/ final File file = new File(getCredentials()); final AWSCredentials creds = new PropertiesCredentials(file); amazonClient = new AmazonSNSAsyncClient(creds, service); return true; } catch (final Exception e) { LogLog.error("sns: amazon client init failure", e); return false; } }