@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonConnectAsyncClient extends AmazonConnectClient implements AmazonConnectAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The Amazon Connect API Reference provides descriptions, syntax, and usage examples for each of the Amazon Connect actions, data types, parameters, and errors. Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonConnectAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartOutboundVoiceContactResult> |
startOutboundVoiceContactAsync(StartOutboundVoiceContactRequest request)
The
StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a
customer. |
Future<StartOutboundVoiceContactResult> |
startOutboundVoiceContactAsync(StartOutboundVoiceContactRequest request,
AsyncHandler<StartOutboundVoiceContactRequest,StartOutboundVoiceContactResult> asyncHandler)
The
StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a
customer. |
Future<StopContactResult> |
stopContactAsync(StopContactRequest request)
Ends the contact initiated by the
StartOutboundVoiceContact operation. |
Future<StopContactResult> |
stopContactAsync(StopContactRequest request,
AsyncHandler<StopContactRequest,StopContactResult> asyncHandler)
Ends the contact initiated by the
StartOutboundVoiceContact operation. |
builder, getCachedResponseMetadata, startOutboundVoiceContact, stopContactaddRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, startOutboundVoiceContact, stopContactpublic static AmazonConnectAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<StartOutboundVoiceContactResult> startOutboundVoiceContactAsync(StartOutboundVoiceContactRequest request)
AmazonConnectAsync
The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a
customer.
There is a throttling limit placed on usage of the API that includes a RateLimit of 2 per second,
and a BurstLimit of 5 per second.
If you are using an IAM account, it must have permissions to the connect:StartOutboundVoiceContact
action.
startOutboundVoiceContactAsync in interface AmazonConnectAsyncpublic Future<StartOutboundVoiceContactResult> startOutboundVoiceContactAsync(StartOutboundVoiceContactRequest request, AsyncHandler<StartOutboundVoiceContactRequest,StartOutboundVoiceContactResult> asyncHandler)
AmazonConnectAsync
The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a
customer.
There is a throttling limit placed on usage of the API that includes a RateLimit of 2 per second,
and a BurstLimit of 5 per second.
If you are using an IAM account, it must have permissions to the connect:StartOutboundVoiceContact
action.
startOutboundVoiceContactAsync in interface AmazonConnectAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopContactResult> stopContactAsync(StopContactRequest request)
AmazonConnectAsync
Ends the contact initiated by the StartOutboundVoiceContact operation.
If you are using an IAM account, it must have permissions to the connect:StopContact operation.
stopContactAsync in interface AmazonConnectAsyncpublic Future<StopContactResult> stopContactAsync(StopContactRequest request, AsyncHandler<StopContactRequest,StopContactResult> asyncHandler)
AmazonConnectAsync
Ends the contact initiated by the StartOutboundVoiceContact operation.
If you are using an IAM account, it must have permissions to the connect:StopContact operation.
stopContactAsync in interface AmazonConnectAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonConnectshutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.