@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonSageMakerRuntimeAsyncClient extends AmazonSageMakerRuntimeClient implements AmazonSageMakerRuntimeAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The Amazon SageMaker runtime API.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonSageMakerRuntimeAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<InvokeEndpointResult> |
invokeEndpointAsync(InvokeEndpointRequest request)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use
this API to get inferences from the model hosted at the specified endpoint.
|
Future<InvokeEndpointResult> |
invokeEndpointAsync(InvokeEndpointRequest request,
AsyncHandler<InvokeEndpointRequest,InvokeEndpointResult> asyncHandler)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use
this API to get inferences from the model hosted at the specified endpoint.
|
Future<InvokeEndpointAsyncResult> |
invokeEndpointAsyncAsync(InvokeEndpointAsyncRequest request)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use
this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner.
|
Future<InvokeEndpointAsyncResult> |
invokeEndpointAsyncAsync(InvokeEndpointAsyncRequest request,
AsyncHandler<InvokeEndpointAsyncRequest,InvokeEndpointAsyncResult> asyncHandler)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use
this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, invokeEndpoint, invokeEndpointAsyncaddRequestHandler, 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, invokeEndpoint, invokeEndpointAsyncpublic static AmazonSageMakerRuntimeAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<InvokeEndpointResult> invokeEndpointAsync(InvokeEndpointRequest request)
AmazonSageMakerRuntimeAsyncAfter you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint.
For an overview of Amazon SageMaker, see How It Works.
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
Calls to InvokeEndpoint are authenticated by using AWS Signature Version 4. For information, see Authenticating
Requests (AWS Signature Version 4) in the Amazon S3 API Reference.
A customer's model containers must respond to requests within 60 seconds. The model itself can have a maximum processing time of 60 seconds before responding to invocations. If your model is going to take 50-60 seconds of processing time, the SDK socket timeout should be set to be 70 seconds.
Endpoints are scoped to an individual account, and are not public. The URL does not contain the account ID, but Amazon SageMaker determines the account ID from the authentication token that is supplied by the caller.
invokeEndpointAsync in interface AmazonSageMakerRuntimeAsyncpublic Future<InvokeEndpointResult> invokeEndpointAsync(InvokeEndpointRequest request, AsyncHandler<InvokeEndpointRequest,InvokeEndpointResult> asyncHandler)
AmazonSageMakerRuntimeAsyncAfter you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint.
For an overview of Amazon SageMaker, see How It Works.
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
Calls to InvokeEndpoint are authenticated by using AWS Signature Version 4. For information, see Authenticating
Requests (AWS Signature Version 4) in the Amazon S3 API Reference.
A customer's model containers must respond to requests within 60 seconds. The model itself can have a maximum processing time of 60 seconds before responding to invocations. If your model is going to take 50-60 seconds of processing time, the SDK socket timeout should be set to be 70 seconds.
Endpoints are scoped to an individual account, and are not public. The URL does not contain the account ID, but Amazon SageMaker determines the account ID from the authentication token that is supplied by the caller.
invokeEndpointAsync in interface AmazonSageMakerRuntimeAsyncasyncHandler - 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<InvokeEndpointAsyncResult> invokeEndpointAsyncAsync(InvokeEndpointAsyncRequest request)
AmazonSageMakerRuntimeAsyncAfter you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner.
Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before the you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it.
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might
add additional headers. You should not rely on the behavior of headers outside those enumerated in the request
syntax.
Calls to InvokeEndpointAsync are authenticated by using AWS Signature Version 4. For information,
see Authenticating
Requests (AWS Signature Version 4) in the Amazon S3 API Reference.
invokeEndpointAsyncAsync in interface AmazonSageMakerRuntimeAsyncpublic Future<InvokeEndpointAsyncResult> invokeEndpointAsyncAsync(InvokeEndpointAsyncRequest request, AsyncHandler<InvokeEndpointAsyncRequest,InvokeEndpointAsyncResult> asyncHandler)
AmazonSageMakerRuntimeAsyncAfter you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner.
Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before the you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it.
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might
add additional headers. You should not rely on the behavior of headers outside those enumerated in the request
syntax.
Calls to InvokeEndpointAsync are authenticated by using AWS Signature Version 4. For information,
see Authenticating
Requests (AWS Signature Version 4) in the Amazon S3 API Reference.
invokeEndpointAsyncAsync in interface AmazonSageMakerRuntimeAsyncasyncHandler - 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 AmazonSageMakerRuntimeshutdown in class AmazonSageMakerRuntimeClient