Tabnine Logo
AmazonSNSAsyncClient.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.amazonaws.services.sns.AmazonSNSAsyncClient
constructor

Best Java code snippets using com.amazonaws.services.sns.AmazonSNSAsyncClient.<init> (Showing top 4 results out of 315)

origin: aws/aws-sdk-java

/**
 * Construct an asynchronous implementation of AmazonSNSAsync using the current builder configuration.
 *
 * @param params
 *        Current builder configuration represented as a parameter object.
 * @return Fully configured implementation of AmazonSNSAsync.
 */
@Override
protected AmazonSNSAsync build(AwsAsyncClientParams params) {
  return new AmazonSNSAsyncClient(params);
}
origin: apache/usergrid

/**
 * The Asynchronous SNS client is used for publishing events to SNS.
 */
private AmazonSNSAsyncClient createAsyncSNSClient( final Region region, final ExecutorService executor ) {
  final UsergridAwsCredentialsProvider ugProvider = new UsergridAwsCredentialsProvider();
  final AmazonSNSAsyncClient sns =
    new AmazonSNSAsyncClient( ugProvider.getCredentials(), clientConfiguration, executor );
  sns.setRegion( region );
  return sns;
}
origin: stackoverflow.com

AmazonSNSAsyncClient snsClient = new AmazonSNSAsyncClient();
origin: skyscreamer/nevado

public AmazonAwsSQSConnector(String awsAccessKey, String awsSecretKey, boolean isSecure, long receiveCheckIntervalMs, boolean isAsync) {
  super(receiveCheckIntervalMs, isAsync);
  AWSCredentials awsCredentials = new BasicAWSCredentials(awsAccessKey, awsSecretKey);
  ClientConfiguration clientConfiguration = new ClientConfiguration();
  String proxyHost = System.getProperty("http.proxyHost");
  String proxyPort = System.getProperty("http.proxyPort");
  if(proxyHost != null){
    clientConfiguration.setProxyHost(proxyHost);
    if(proxyPort != null){
     clientConfiguration.setProxyPort(Integer.parseInt(proxyPort));
    }
  }
  clientConfiguration.setProtocol(isSecure ? Protocol.HTTPS : Protocol.HTTP);
  if (isAsync) {
    ExecutorService executorService = Executors.newSingleThreadExecutor();
    _amazonSQS = new AmazonSQSAsyncClient(awsCredentials, clientConfiguration, executorService);
    _amazonSNS = new AmazonSNSAsyncClient(awsCredentials, clientConfiguration, executorService);
  } else {
    _amazonSQS = new AmazonSQSClient(awsCredentials, clientConfiguration);
    _amazonSNS = new AmazonSNSClient(awsCredentials, clientConfiguration);
  }
}
com.amazonaws.services.snsAmazonSNSAsyncClient<init>

Javadoc

Constructs a new asynchronous client to invoke service methods on Amazon SNS. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • Instance profile credentials delivered through the Amazon EC2 metadata service

Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).

Popular methods of AmazonSNSAsyncClient

  • addPermission
  • checkIfPhoneNumberIsOptedOut
  • confirmSubscription
  • createPlatformApplication
  • createPlatformEndpoint
  • createTopic
  • deleteEndpoint
  • deletePlatformApplication
  • deleteTopic
  • getEndpointAttributes
  • getPlatformApplicationAttributes
  • getSMSAttributes
  • getPlatformApplicationAttributes,
  • getSMSAttributes,
  • getSubscriptionAttributes,
  • getTopicAttributes,
  • listEndpointsByPlatformApplication,
  • listPhoneNumbersOptedOut,
  • listPlatformApplications,
  • listSubscriptions,
  • listSubscriptionsByTopic

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now