@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_METRIC
ENDPOINT_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, putUsers
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
getCachedResponseMetadata, putEvents, putItems, putUsers
public static AmazonPersonalizeEventsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<PutEventsResult> putEventsAsync(PutEventsRequest request)
AmazonPersonalizeEventsAsync
Records user interaction event data. For more information see Recording Events.
putEventsAsync
in interface AmazonPersonalizeEventsAsync
public Future<PutEventsResult> putEventsAsync(PutEventsRequest request, AsyncHandler<PutEventsRequest,PutEventsResult> asyncHandler)
AmazonPersonalizeEventsAsync
Records user interaction event data. For more information see Recording Events.
putEventsAsync
in interface AmazonPersonalizeEventsAsync
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<PutItemsResult> putItemsAsync(PutItemsRequest request)
AmazonPersonalizeEventsAsync
Adds one or more items to an Items dataset. For more information see Importing Items Incrementally.
putItemsAsync
in interface AmazonPersonalizeEventsAsync
public Future<PutItemsResult> putItemsAsync(PutItemsRequest request, AsyncHandler<PutItemsRequest,PutItemsResult> asyncHandler)
AmazonPersonalizeEventsAsync
Adds one or more items to an Items dataset. For more information see Importing Items Incrementally.
putItemsAsync
in interface AmazonPersonalizeEventsAsync
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<PutUsersResult> putUsersAsync(PutUsersRequest request)
AmazonPersonalizeEventsAsync
Adds one or more users to a Users dataset. For more information see Importing Users Incrementally.
putUsersAsync
in interface AmazonPersonalizeEventsAsync
public Future<PutUsersResult> putUsersAsync(PutUsersRequest request, AsyncHandler<PutUsersRequest,PutUsersResult> asyncHandler)
AmazonPersonalizeEventsAsync
Adds one or more users to a Users dataset. For more information see Importing Users Incrementally.
putUsersAsync
in interface AmazonPersonalizeEventsAsync
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 AmazonPersonalizeEvents
shutdown
in class AmazonPersonalizeEventsClient