Codota Logo
AmazonSNSAsyncClient.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now