@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_PREFIXbuilder, deleteConnection, getCachedResponseMetadata, getConnection, 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, waitdeleteConnection, getCachedResponseMetadata, getConnection, postToConnectionpublic static AmazonApiGatewayManagementApiAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteConnectionResult> deleteConnectionAsync(DeleteConnectionRequest request)
AmazonApiGatewayManagementApiAsyncDelete the connection with the provided id.
deleteConnectionAsync in interface AmazonApiGatewayManagementApiAsyncpublic Future<DeleteConnectionResult> deleteConnectionAsync(DeleteConnectionRequest request, AsyncHandler<DeleteConnectionRequest,DeleteConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsyncDelete the connection with the provided id.
deleteConnectionAsync 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 Future<GetConnectionResult> getConnectionAsync(GetConnectionRequest request)
AmazonApiGatewayManagementApiAsyncGet information about the connection with the provided id.
getConnectionAsync in interface AmazonApiGatewayManagementApiAsyncpublic Future<GetConnectionResult> getConnectionAsync(GetConnectionRequest request, AsyncHandler<GetConnectionRequest,GetConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsyncGet information about the connection with the provided id.
getConnectionAsync 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 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 AmazonApiGatewayManagementApiClient