@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonKendraRankingAsyncClient extends AmazonKendraRankingClient implements AmazonKendraRankingAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon Kendra Intelligent Ranking uses Amazon Kendra semantic search capabilities to intelligently re-rank a search service's results.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createRescoreExecutionPlan, deleteRescoreExecutionPlan, describeRescoreExecutionPlan, getCachedResponseMetadata, listRescoreExecutionPlans, listTagsForResource, rescore, tagResource, untagResource, updateRescoreExecutionPlan
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
createRescoreExecutionPlan, deleteRescoreExecutionPlan, describeRescoreExecutionPlan, getCachedResponseMetadata, listRescoreExecutionPlans, listTagsForResource, rescore, tagResource, untagResource, updateRescoreExecutionPlan
public static AmazonKendraRankingAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateRescoreExecutionPlanResult> createRescoreExecutionPlanAsync(CreateRescoreExecutionPlanRequest request)
AmazonKendraRankingAsync
Creates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API. You set the number of capacity units that you require for Amazon
Kendra Intelligent Ranking to rescore or re-rank a search service's results.
For an example of using the CreateRescoreExecutionPlan
API, including using the Python and Java
SDKs, see Semantically ranking
a search service's results.
createRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
public Future<CreateRescoreExecutionPlanResult> createRescoreExecutionPlanAsync(CreateRescoreExecutionPlanRequest request, AsyncHandler<CreateRescoreExecutionPlanRequest,CreateRescoreExecutionPlanResult> asyncHandler)
AmazonKendraRankingAsync
Creates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API. You set the number of capacity units that you require for Amazon
Kendra Intelligent Ranking to rescore or re-rank a search service's results.
For an example of using the CreateRescoreExecutionPlan
API, including using the Python and Java
SDKs, see Semantically ranking
a search service's results.
createRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
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<DeleteRescoreExecutionPlanResult> deleteRescoreExecutionPlanAsync(DeleteRescoreExecutionPlanRequest request)
AmazonKendraRankingAsync
Deletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API.
deleteRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
public Future<DeleteRescoreExecutionPlanResult> deleteRescoreExecutionPlanAsync(DeleteRescoreExecutionPlanRequest request, AsyncHandler<DeleteRescoreExecutionPlanRequest,DeleteRescoreExecutionPlanResult> asyncHandler)
AmazonKendraRankingAsync
Deletes a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API.
deleteRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
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<DescribeRescoreExecutionPlanResult> describeRescoreExecutionPlanAsync(DescribeRescoreExecutionPlanRequest request)
AmazonKendraRankingAsync
Gets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking
resource used for provisioning the Rescore
API.
describeRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
public Future<DescribeRescoreExecutionPlanResult> describeRescoreExecutionPlanAsync(DescribeRescoreExecutionPlanRequest request, AsyncHandler<DescribeRescoreExecutionPlanRequest,DescribeRescoreExecutionPlanResult> asyncHandler)
AmazonKendraRankingAsync
Gets information about a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking
resource used for provisioning the Rescore
API.
describeRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
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<ListRescoreExecutionPlansResult> listRescoreExecutionPlansAsync(ListRescoreExecutionPlansRequest request)
AmazonKendraRankingAsync
Lists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource
used for provisioning the Rescore
API.
listRescoreExecutionPlansAsync
in interface AmazonKendraRankingAsync
public Future<ListRescoreExecutionPlansResult> listRescoreExecutionPlansAsync(ListRescoreExecutionPlansRequest request, AsyncHandler<ListRescoreExecutionPlansRequest,ListRescoreExecutionPlansResult> asyncHandler)
AmazonKendraRankingAsync
Lists your rescore execution plans. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource
used for provisioning the Rescore
API.
listRescoreExecutionPlansAsync
in interface AmazonKendraRankingAsync
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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonKendraRankingAsync
Gets a list of tags associated with a specified resource. A rescore execution plan is an example of a resource that can have tags associated with it.
listTagsForResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information for listing tags associated with a rescore execution plan. A rescore execution
plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore
API.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonKendraRankingAsync
Gets a list of tags associated with a specified resource. A rescore execution plan is an example of a resource that can have tags associated with it.
listTagsForResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information for listing tags associated with a rescore execution plan. A rescore execution
plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore
API.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<RescoreResult> rescoreAsync(RescoreRequest request)
AmazonKendraRankingAsync
Rescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's results.
rescoreAsync
in interface AmazonKendraRankingAsync
public Future<RescoreResult> rescoreAsync(RescoreRequest request, AsyncHandler<RescoreRequest,RescoreResult> asyncHandler)
AmazonKendraRankingAsync
Rescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's results.
rescoreAsync
in interface AmazonKendraRankingAsync
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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonKendraRankingAsync
Adds a specified tag to a specified rescore execution plan. A rescore execution plan is an Amazon Kendra
Intelligent Ranking resource used for provisioning the Rescore
API. If the tag already exists, the
existing value is replaced with the new value.
tagResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information for tagging a rescore execution plan. A rescore execution plan is an Amazon Kendra
Intelligent Ranking resource used for provisioning the Rescore
API.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonKendraRankingAsync
Adds a specified tag to a specified rescore execution plan. A rescore execution plan is an Amazon Kendra
Intelligent Ranking resource used for provisioning the Rescore
API. If the tag already exists, the
existing value is replaced with the new value.
tagResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information for tagging a rescore execution plan. A rescore execution plan is an Amazon Kendra
Intelligent Ranking resource used for provisioning the Rescore
API.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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonKendraRankingAsync
Removes a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking
resource used for provisioning the Rescore
operation.
untagResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information to remove a tag from a rescore execution plan. A rescore execution plan is an
Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore
API.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonKendraRankingAsync
Removes a tag from a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking
resource used for provisioning the Rescore
operation.
untagResourceAsync
in interface AmazonKendraRankingAsync
request
- The request information to remove a tag from a rescore execution plan. A rescore execution plan is an
Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore
API.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<UpdateRescoreExecutionPlanResult> updateRescoreExecutionPlanAsync(UpdateRescoreExecutionPlanRequest request)
AmazonKendraRankingAsync
Updates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API. You can update the number of capacity units you require for Amazon
Kendra Intelligent Ranking to rescore or re-rank a search service's results.
updateRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
public Future<UpdateRescoreExecutionPlanResult> updateRescoreExecutionPlanAsync(UpdateRescoreExecutionPlanRequest request, AsyncHandler<UpdateRescoreExecutionPlanRequest,UpdateRescoreExecutionPlanResult> asyncHandler)
AmazonKendraRankingAsync
Updates a rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used
for provisioning the Rescore
API. You can update the number of capacity units you require for Amazon
Kendra Intelligent Ranking to rescore or re-rank a search service's results.
updateRescoreExecutionPlanAsync
in interface AmazonKendraRankingAsync
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 AmazonKendraRanking
shutdown
in class AmazonKendraRankingClient