@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_METRIC
ENDPOINT_PREFIX
builder, deleteConnection, getCachedResponseMetadata, getConnection, postToConnection
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteConnection, getCachedResponseMetadata, getConnection, postToConnection
public static AmazonApiGatewayManagementApiAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteConnectionResult> deleteConnectionAsync(DeleteConnectionRequest request)
AmazonApiGatewayManagementApiAsync
Delete the connection with the provided id.
deleteConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
public Future<DeleteConnectionResult> deleteConnectionAsync(DeleteConnectionRequest request, AsyncHandler<DeleteConnectionRequest,DeleteConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsync
Delete the connection with the provided id.
deleteConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
asyncHandler
- 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)
AmazonApiGatewayManagementApiAsync
Get information about the connection with the provided id.
getConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
public Future<GetConnectionResult> getConnectionAsync(GetConnectionRequest request, AsyncHandler<GetConnectionRequest,GetConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsync
Get information about the connection with the provided id.
getConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
asyncHandler
- 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)
AmazonApiGatewayManagementApiAsync
Sends the provided data to the specified connection.
postToConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
public Future<PostToConnectionResult> postToConnectionAsync(PostToConnectionRequest request, AsyncHandler<PostToConnectionRequest,PostToConnectionResult> asyncHandler)
AmazonApiGatewayManagementApiAsync
Sends the provided data to the specified connection.
postToConnectionAsync
in interface AmazonApiGatewayManagementApiAsync
asyncHandler
- 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 AmazonApiGatewayManagementApi
shutdown
in class AmazonApiGatewayManagementApiClient