@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentRuntimeAsyncClient extends AWSBedrockAgentRuntimeClient implements AWSBedrockAgentRuntimeAsync
AsyncHandler can be used to
receive notification when an asynchronous operation completes.
Amazon Bedrock Agent
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSBedrockAgentRuntimeAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest request)
RetrieveAndGenerate API
|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest request,
AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
RetrieveAndGenerate API
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest request)
Retrieve from knowledge base.
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest request,
AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
Retrieve from knowledge base.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, retrieve, retrieveAndGenerateaddRequestHandler, 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, retrieve, retrieveAndGeneratepublic static AWSBedrockAgentRuntimeAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<RetrieveResult> retrieveAsync(RetrieveRequest request)
AWSBedrockAgentRuntimeAsyncRetrieve from knowledge base.
retrieveAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<RetrieveResult> retrieveAsync(RetrieveRequest request, AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncRetrieve from knowledge base.
retrieveAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - 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<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest request)
AWSBedrockAgentRuntimeAsyncRetrieveAndGenerate API
retrieveAndGenerateAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest request, AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncRetrieveAndGenerate API
retrieveAndGenerateAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - 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 AWSBedrockAgentRuntimeshutdown in class AWSBedrockAgentRuntimeClient