@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.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, putEvents
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
public static AmazonPersonalizeEventsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<PutEventsResult> putEventsAsync(PutEventsRequest request)
AmazonPersonalizeEventsAsync
Records user interaction event data. For more information see event-record-api.
putEventsAsync
in interface AmazonPersonalizeEventsAsync
public Future<PutEventsResult> putEventsAsync(PutEventsRequest request, AsyncHandler<PutEventsRequest,PutEventsResult> asyncHandler)
AmazonPersonalizeEventsAsync
Records user interaction event data. For more information see event-record-api.
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 void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonPersonalizeEvents
shutdown
in class AmazonWebServiceClient