Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.cognitoidentity;
  
  
  
Asynchronous client for accessing AmazonCognitoIdentity. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread.
  
          implements AmazonCognitoIdentityAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonCognitoIdentityAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonCognitoIdentity (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AmazonCognitoIdentityAsyncClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Parameters:
unlinkDeveloperIdentityRequest Container for the necessary parameters to execute the UnlinkDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UnlinkDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidunlinkDeveloperIdentityAsync(final UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 unlinkDeveloperIdentity(unlinkDeveloperIdentityRequest);
                 return null;
         }
     });
     }

    

Parameters:
unlinkDeveloperIdentityRequest Container for the necessary parameters to execute the UnlinkDeveloperIdentity operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UnlinkDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest,
             final AsyncHandler<UnlinkDeveloperIdentityRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 unlinkDeveloperIdentity(unlinkDeveloperIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(unlinkDeveloperIdentityRequestnull);
                  return null;
         }
     });
     }
    
    

Parameters:
describeIdentityPoolRequest Container for the necessary parameters to execute the DescribeIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the DescribeIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeIdentityPoolResultdescribeIdentityPoolAsync(final DescribeIdentityPoolRequest describeIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIdentityPoolResult>() {
             public DescribeIdentityPoolResult call() throws Exception {
                 return describeIdentityPool(describeIdentityPoolRequest);
         }
     });
     }

    

Parameters:
describeIdentityPoolRequest Container for the necessary parameters to execute the DescribeIdentityPool operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeIdentityPoolRequest describeIdentityPoolRequest,
             final AsyncHandler<DescribeIdentityPoolRequestDescribeIdentityPoolResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIdentityPoolResult>() {
             public DescribeIdentityPoolResult call() throws Exception {
               DescribeIdentityPoolResult result;
                 try {
                 result = describeIdentityPool(describeIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeIdentityPoolRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
getIdRequest Container for the necessary parameters to execute the GetId operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetId service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetIdResultgetIdAsync(final GetIdRequest getIdRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetIdResult>() {
             public GetIdResult call() throws Exception {
                 return getId(getIdRequest);
         }
     });
     }

    

Parameters:
getIdRequest Container for the necessary parameters to execute the GetId operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetId service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetIdResultgetIdAsync(
             final GetIdRequest getIdRequest,
             final AsyncHandler<GetIdRequestGetIdResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetIdResult>() {
             public GetIdResult call() throws Exception {
               GetIdResult result;
                 try {
                 result = getId(getIdRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getIdRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
deleteIdentityPoolRequest Container for the necessary parameters to execute the DeleteIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the DeleteIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteIdentityPoolAsync(final DeleteIdentityPoolRequest deleteIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteIdentityPool(deleteIdentityPoolRequest);
                 return null;
         }
     });
     }

    

Parameters:
deleteIdentityPoolRequest Container for the necessary parameters to execute the DeleteIdentityPool operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteIdentityPoolRequest deleteIdentityPoolRequest,
             final AsyncHandler<DeleteIdentityPoolRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteIdentityPool(deleteIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteIdentityPoolRequestnull);
                  return null;
         }
     });
     }
    
    

Parameters:
updateIdentityPoolRequest Container for the necessary parameters to execute the UpdateIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UpdateIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<UpdateIdentityPoolResultupdateIdentityPoolAsync(final UpdateIdentityPoolRequest updateIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateIdentityPoolResult>() {
             public UpdateIdentityPoolResult call() throws Exception {
                 return updateIdentityPool(updateIdentityPoolRequest);
         }
     });
     }

    

Parameters:
updateIdentityPoolRequest Container for the necessary parameters to execute the UpdateIdentityPool operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateIdentityPoolRequest updateIdentityPoolRequest,
             final AsyncHandler<UpdateIdentityPoolRequestUpdateIdentityPoolResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateIdentityPoolResult>() {
             public UpdateIdentityPoolResult call() throws Exception {
               UpdateIdentityPoolResult result;
                 try {
                 result = updateIdentityPool(updateIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateIdentityPoolRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
listIdentityPoolsRequest Container for the necessary parameters to execute the ListIdentityPools operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the ListIdentityPools service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListIdentityPoolsResultlistIdentityPoolsAsync(final ListIdentityPoolsRequest listIdentityPoolsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListIdentityPoolsResult>() {
             public ListIdentityPoolsResult call() throws Exception {
                 return listIdentityPools(listIdentityPoolsRequest);
         }
     });
     }

    

Parameters:
listIdentityPoolsRequest Container for the necessary parameters to execute the ListIdentityPools operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListIdentityPools service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final ListIdentityPoolsRequest listIdentityPoolsRequest,
             final AsyncHandler<ListIdentityPoolsRequestListIdentityPoolsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListIdentityPoolsResult>() {
             public ListIdentityPoolsResult call() throws Exception {
               ListIdentityPoolsResult result;
                 try {
                 result = listIdentityPools(listIdentityPoolsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listIdentityPoolsRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
mergeDeveloperIdentitiesRequest Container for the necessary parameters to execute the MergeDeveloperIdentities operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the MergeDeveloperIdentities service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<MergeDeveloperIdentitiesResultmergeDeveloperIdentitiesAsync(final MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest
             throws AmazonServiceExceptionAmazonClientException {
             public MergeDeveloperIdentitiesResult call() throws Exception {
                 return mergeDeveloperIdentities(mergeDeveloperIdentitiesRequest);
         }
     });
     }

    

Parameters:
mergeDeveloperIdentitiesRequest Container for the necessary parameters to execute the MergeDeveloperIdentities operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the MergeDeveloperIdentities service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest,
             final AsyncHandler<MergeDeveloperIdentitiesRequestMergeDeveloperIdentitiesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public MergeDeveloperIdentitiesResult call() throws Exception {
               MergeDeveloperIdentitiesResult result;
                 try {
                 result = mergeDeveloperIdentities(mergeDeveloperIdentitiesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(mergeDeveloperIdentitiesRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
getOpenIdTokenRequest Container for the necessary parameters to execute the GetOpenIdToken operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetOpenIdTokenResultgetOpenIdTokenAsync(final GetOpenIdTokenRequest getOpenIdTokenRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetOpenIdTokenResult>() {
             public GetOpenIdTokenResult call() throws Exception {
                 return getOpenIdToken(getOpenIdTokenRequest);
         }
     });
     }

    

Parameters:
getOpenIdTokenRequest Container for the necessary parameters to execute the GetOpenIdToken operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final GetOpenIdTokenRequest getOpenIdTokenRequest,
             final AsyncHandler<GetOpenIdTokenRequestGetOpenIdTokenResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetOpenIdTokenResult>() {
             public GetOpenIdTokenResult call() throws Exception {
               GetOpenIdTokenResult result;
                 try {
                 result = getOpenIdToken(getOpenIdTokenRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getOpenIdTokenRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
lookupDeveloperIdentityRequest Container for the necessary parameters to execute the LookupDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the LookupDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<LookupDeveloperIdentityResultlookupDeveloperIdentityAsync(final LookupDeveloperIdentityRequest lookupDeveloperIdentityRequest
             throws AmazonServiceExceptionAmazonClientException {
             public LookupDeveloperIdentityResult call() throws Exception {
                 return lookupDeveloperIdentity(lookupDeveloperIdentityRequest);
         }
     });
     }

    

Parameters:
lookupDeveloperIdentityRequest Container for the necessary parameters to execute the LookupDeveloperIdentity operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the LookupDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final LookupDeveloperIdentityRequest lookupDeveloperIdentityRequest,
             final AsyncHandler<LookupDeveloperIdentityRequestLookupDeveloperIdentityResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public LookupDeveloperIdentityResult call() throws Exception {
               LookupDeveloperIdentityResult result;
                 try {
                 result = lookupDeveloperIdentity(lookupDeveloperIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(lookupDeveloperIdentityRequestresult);
                  return result;
         }
     });
     }
    
    

Parameters:
unlinkIdentityRequest Container for the necessary parameters to execute the UnlinkIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidunlinkIdentityAsync(final UnlinkIdentityRequest unlinkIdentityRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 unlinkIdentity(unlinkIdentityRequest);
                 return null;
         }
     });
     }

    

Parameters:
unlinkIdentityRequest Container for the necessary parameters to execute the UnlinkIdentity operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidunlinkIdentityAsync(
             final UnlinkIdentityRequest unlinkIdentityRequest,
             final AsyncHandler<UnlinkIdentityRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 unlinkIdentity(unlinkIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(unlinkIdentityRequestnull);
                  return null;
         }
     });
     }
    
    

Parameters:
listIdentitiesRequest Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the ListIdentities service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListIdentitiesResultlistIdentitiesAsync(final ListIdentitiesRequest listIdentitiesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListIdentitiesResult>() {
             public ListIdentitiesResult call() throws Exception {
                 return listIdentities(listIdentitiesRequest);
         }
     });
     }

    

Parameters:
listIdentitiesRequest Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListIdentities service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final ListIdentitiesRequest listIdentitiesRequest,
            final AsyncHandler<ListIdentitiesRequestListIdentitiesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListIdentitiesResult>() {
            public ListIdentitiesResult call() throws Exception {
              ListIdentitiesResult result;
                try {
                result = listIdentities(listIdentitiesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listIdentitiesRequestresult);
                 return result;
        }
    });
    }
    
    

Parameters:
getOpenIdTokenForDeveloperIdentityRequest Container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetOpenIdTokenForDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetOpenIdTokenForDeveloperIdentityResult call() throws Exception {
                return getOpenIdTokenForDeveloperIdentity(getOpenIdTokenForDeveloperIdentityRequest);
        }
    });
    }

    

Parameters:
getOpenIdTokenForDeveloperIdentityRequest Container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetOpenIdTokenForDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final GetOpenIdTokenForDeveloperIdentityRequest getOpenIdTokenForDeveloperIdentityRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public GetOpenIdTokenForDeveloperIdentityResult call() throws Exception {
              GetOpenIdTokenForDeveloperIdentityResult result;
                try {
                result = getOpenIdTokenForDeveloperIdentity(getOpenIdTokenForDeveloperIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getOpenIdTokenForDeveloperIdentityRequestresult);
                 return result;
        }
    });
    }
    
    

Parameters:
createIdentityPoolRequest Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the CreateIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateIdentityPoolResultcreateIdentityPoolAsync(final CreateIdentityPoolRequest createIdentityPoolRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateIdentityPoolResult>() {
            public CreateIdentityPoolResult call() throws Exception {
                return createIdentityPool(createIdentityPoolRequest);
        }
    });
    }

    

Parameters:
createIdentityPoolRequest Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentity.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateIdentityPool service method, as returned by AmazonCognitoIdentity.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final CreateIdentityPoolRequest createIdentityPoolRequest,
            final AsyncHandler<CreateIdentityPoolRequestCreateIdentityPoolResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateIdentityPoolResult>() {
            public CreateIdentityPoolResult call() throws Exception {
              CreateIdentityPoolResult result;
                try {
                result = createIdentityPool(createIdentityPoolRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createIdentityPoolRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X