@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPersonalizeEventsAsyncClient extends AmazonPersonalizeEventsClient implements AmazonPersonalizeEventsAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon Personalize can consume real-time user event data, such as stream or click data, and use it for model training either alone or combined with historical data. For more information see recording-events.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonPersonalizeEventsAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<PutEventsResult> |
putEventsAsync(PutEventsRequest request)
Records user interaction event data.
|
Future<PutEventsResult> |
putEventsAsync(PutEventsRequest request,
AsyncHandler<PutEventsRequest,PutEventsResult> asyncHandler)
Records user interaction event data.
|
Future<PutItemsResult> |
putItemsAsync(PutItemsRequest request)
Adds one or more items to an Items dataset.
|
Future<PutItemsResult> |
putItemsAsync(PutItemsRequest request,
AsyncHandler<PutItemsRequest,PutItemsResult> asyncHandler)
Adds one or more items to an Items dataset.
|
Future<PutUsersResult> |
putUsersAsync(PutUsersRequest request)
Adds one or more users to a Users dataset.
|
Future<PutUsersResult> |
putUsersAsync(PutUsersRequest request,
AsyncHandler<PutUsersRequest,PutUsersResult> asyncHandler)
Adds one or more users to a Users dataset.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, putEvents, putItems, putUsersaddRequestHandler, 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, putEvents, putItems, putUserspublic static AmazonPersonalizeEventsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<PutEventsResult> putEventsAsync(PutEventsRequest request)
AmazonPersonalizeEventsAsyncRecords user interaction event data. For more information see event-record-api.
putEventsAsync in interface AmazonPersonalizeEventsAsyncpublic Future<PutEventsResult> putEventsAsync(PutEventsRequest request, AsyncHandler<PutEventsRequest,PutEventsResult> asyncHandler)
AmazonPersonalizeEventsAsyncRecords user interaction event data. For more information see event-record-api.
putEventsAsync in interface AmazonPersonalizeEventsAsyncasyncHandler - 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<PutItemsResult> putItemsAsync(PutItemsRequest request)
AmazonPersonalizeEventsAsyncAdds one or more items to an Items dataset. For more information see importing-items.
putItemsAsync in interface AmazonPersonalizeEventsAsyncpublic Future<PutItemsResult> putItemsAsync(PutItemsRequest request, AsyncHandler<PutItemsRequest,PutItemsResult> asyncHandler)
AmazonPersonalizeEventsAsyncAdds one or more items to an Items dataset. For more information see importing-items.
putItemsAsync in interface AmazonPersonalizeEventsAsyncasyncHandler - 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<PutUsersResult> putUsersAsync(PutUsersRequest request)
AmazonPersonalizeEventsAsyncAdds one or more users to a Users dataset. For more information see importing-users.
putUsersAsync in interface AmazonPersonalizeEventsAsyncpublic Future<PutUsersResult> putUsersAsync(PutUsersRequest request, AsyncHandler<PutUsersRequest,PutUsersResult> asyncHandler)
AmazonPersonalizeEventsAsyncAdds one or more users to a Users dataset. For more information see importing-users.
putUsersAsync in interface AmazonPersonalizeEventsAsyncasyncHandler - 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 AmazonPersonalizeEventsshutdown in class AmazonPersonalizeEventsClient