public class AmazonMobileAnalyticsAsyncClient extends AmazonMobileAnalyticsClient implements AmazonMobileAnalyticsAsync
A service which is used to record Amazon Mobile Analytics events
jsonErrorUnmarshallersclient, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset| Constructor and Description |
|---|
AmazonMobileAnalyticsAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials
and executor service.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials provider.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials
provider and client configuration options.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics using the specified AWS account credentials provider
and executor service.
|
AmazonMobileAnalyticsAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonMobileAnalytics.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
java.util.concurrent.Future<java.lang.Void> |
putEventsAsync(PutEventsRequest putEventsRequest)
Record a batch of events
|
java.util.concurrent.Future<java.lang.Void> |
putEventsAsync(PutEventsRequest putEventsRequest,
AsyncHandler<PutEventsRequest,java.lang.Void> asyncHandler)
Record a batch of events
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
getCachedResponseMetadata, putEvents, setEndpoint, setEndpointaddRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, putEvents, setEndpoint, setRegionpublic AmazonMobileAnalyticsAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AmazonMobileAnalyticsAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this
client connects to AmazonMobileAnalytics
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials)
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.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials, java.util.concurrent.ExecutorService executorService)
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.
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 AmazonMobileAnalyticsAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
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.
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 AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
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.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, java.util.concurrent.ExecutorService executorService)
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.
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 AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
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.
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 AmazonMobileAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
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.
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 java.util.concurrent.ExecutorService getExecutorService()
public void shutdown()
shutdown in interface AmazonMobileAnalyticsshutdown in class AmazonWebServiceClientpublic java.util.concurrent.Future<java.lang.Void> putEventsAsync(PutEventsRequest putEventsRequest) throws AmazonServiceException, AmazonClientException
Record a batch of events
putEventsAsync in interface AmazonMobileAnalyticsAsyncputEventsRequest - Container for the necessary parameters to
execute the PutEvents operation on AmazonMobileAnalytics.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.AmazonServiceException - If an error response is returned by AmazonMobileAnalytics indicating
either a problem with the data in the request, or a server side issue.public java.util.concurrent.Future<java.lang.Void> putEventsAsync(PutEventsRequest putEventsRequest, AsyncHandler<PutEventsRequest,java.lang.Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Record a batch of events
putEventsAsync in interface AmazonMobileAnalyticsAsyncputEventsRequest - Container for the necessary parameters to
execute the PutEvents operation on AmazonMobileAnalytics.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.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.AmazonServiceException - If an error response is returned by AmazonMobileAnalytics indicating
either a problem with the data in the request, or a server side issue.