Codota Logo
AmazonSNSAsyncClient
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.amazonaws.services.sns.AmazonSNSAsyncClient (Showing top 20 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: 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: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    addPermission(addPermissionRequest);
    return null;
  }
});
origin: aws-amplify/aws-sdk-android

  public CheckIfPhoneNumberIsOptedOutResult call() throws Exception {
    return checkIfPhoneNumberIsOptedOut(checkIfPhoneNumberIsOptedOutRequest);
  }
});
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: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    deleteTopic(deleteTopicRequest);
    return null;
  }
});
origin: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    deletePlatformApplication(deletePlatformApplicationRequest);
    return null;
  }
});
origin: aws-amplify/aws-sdk-android

  public ConfirmSubscriptionResult call() throws Exception {
    return confirmSubscription(confirmSubscriptionRequest);
  }
});
origin: aws-amplify/aws-sdk-android

  public CreatePlatformApplicationResult call() throws Exception {
    return createPlatformApplication(createPlatformApplicationRequest);
  }
});
origin: aws-amplify/aws-sdk-android

  public CreatePlatformEndpointResult call() throws Exception {
    return createPlatformEndpoint(createPlatformEndpointRequest);
  }
});
origin: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    deleteEndpoint(deleteEndpointRequest);
    return null;
  }
});
origin: aws-amplify/aws-sdk-android

  public CreateTopicResult call() throws Exception {
    return createTopic(createTopicRequest);
  }
});
origin: stackoverflow.com

AmazonSNSAsyncClient snsClient = new AmazonSNSAsyncClient();
origin: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    Void result = null;
    try {
      deleteTopic(deleteTopicRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(deleteTopicRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    Void result = null;
    try {
      deletePlatformApplication(deletePlatformApplicationRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(deletePlatformApplicationRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public ConfirmSubscriptionResult call() throws Exception {
    ConfirmSubscriptionResult result = null;
    try {
      result = confirmSubscription(confirmSubscriptionRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(confirmSubscriptionRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public CreatePlatformApplicationResult call() throws Exception {
    CreatePlatformApplicationResult result = null;
    try {
      result = createPlatformApplication(createPlatformApplicationRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(createPlatformApplicationRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public CreatePlatformEndpointResult call() throws Exception {
    CreatePlatformEndpointResult result = null;
    try {
      result = createPlatformEndpoint(createPlatformEndpointRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(createPlatformEndpointRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public Void call() throws Exception {
    Void result = null;
    try {
      deleteEndpoint(deleteEndpointRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(deleteEndpointRequest, result);
    return result;
  }
});
origin: aws-amplify/aws-sdk-android

  public CreateTopicResult call() throws Exception {
    CreateTopicResult result = null;
    try {
      result = createTopic(createTopicRequest);
    } catch (Exception ex) {
      asyncHandler.onError(ex);
      throw ex;
    }
    asyncHandler.onSuccess(createTopicRequest, result);
    return result;
  }
});
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

Javadoc

Client for accessing Amazon SNS asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes.

Amazon Simple Notification Service

Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see http://aws.amazon.com/sns. For detailed information about Amazon SNS features and their associated API calls, see the Amazon SNS Developer Guide.

We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to Tools for Amazon Web Services.

Most used methods

  • <init>
    Constructs a new asynchronous client to invoke service methods on Amazon SNS using the specified par
  • addPermission
  • checkIfPhoneNumberIsOptedOut
  • confirmSubscription
  • createPlatformApplication
  • createPlatformEndpoint
  • createTopic
  • deleteEndpoint
  • deletePlatformApplication
  • deleteTopic
  • getEndpointAttributes
  • getPlatformApplicationAttributes
  • getEndpointAttributes,
  • getPlatformApplicationAttributes,
  • getSMSAttributes,
  • getSubscriptionAttributes,
  • getTopicAttributes,
  • listEndpointsByPlatformApplication,
  • listPhoneNumbersOptedOut,
  • listPlatformApplications,
  • listSubscriptions,
  • listSubscriptionsByTopic

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • IsNull (org.hamcrest.core)
    Is the value null?
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