@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonApiGatewayManagementApiAsyncClient extends AmazonApiGatewayManagementApiClient implements AmazonApiGatewayManagementApiAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonApiGatewayManagementApiAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<PostToConnectionResult> |
postToConnectionAsync(PostToConnectionRequest request)
Sends the provided data to the specified connection.
|
Future<PostToConnectionResult> |
postToConnectionAsync(PostToConnectionRequest request,
AsyncHandler<PostToConnectionRequest,PostToConnectionResult> asyncHandler)
Sends the provided data to the specified connection.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, postToConnectionaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, 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, postToConnectionpublic static AmazonApiGatewayManagementApiAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<PostToConnectionResult> postToConnectionAsync(PostToConnectionRequest request)
AmazonApiGatewayManagementApiAsyncSends the provided data to the specified connection.
postToConnectionAsync in interface AmazonApiGatewayManagementApiAsyncpublic Future<PostToConnectionResult> postToConnectionAsync(PostToConnectionRequest request, AsyncHandler<PostToConnectionRequest,PostToConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsyncSends the provided data to the specified connection.
postToConnectionAsync in interface AmazonApiGatewayManagementApiAsyncasyncHandler - 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 AmazonApiGatewayManagementApishutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.