@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSMediaStoreDataAsyncClient extends AWSMediaStoreDataClient implements AWSMediaStoreDataAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
An AWS Elemental MediaStore asset is an object, similar to an object in the Amazon S3 service. Objects are the fundamental entities that are stored in AWS Elemental MediaStore.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSMediaStoreDataAsyncClientBuilder |
asyncBuilder() |
Future<DeleteObjectResult> |
deleteObjectAsync(DeleteObjectRequest request)
Deletes an object at the specified path.
|
Future<DeleteObjectResult> |
deleteObjectAsync(DeleteObjectRequest request,
AsyncHandler<DeleteObjectRequest,DeleteObjectResult> asyncHandler)
Deletes an object at the specified path.
|
Future<DescribeObjectResult> |
describeObjectAsync(DescribeObjectRequest request)
Gets the headers for an object at the specified path.
|
Future<DescribeObjectResult> |
describeObjectAsync(DescribeObjectRequest request,
AsyncHandler<DescribeObjectRequest,DescribeObjectResult> asyncHandler)
Gets the headers for an object at the specified path.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetObjectResult> |
getObjectAsync(GetObjectRequest request)
Downloads the object at the specified path.
|
Future<GetObjectResult> |
getObjectAsync(GetObjectRequest request,
AsyncHandler<GetObjectRequest,GetObjectResult> asyncHandler)
Downloads the object at the specified path.
|
Future<ListItemsResult> |
listItemsAsync(ListItemsRequest request)
Provides a list of metadata entries about folders and objects in the specified folder.
|
Future<ListItemsResult> |
listItemsAsync(ListItemsRequest request,
AsyncHandler<ListItemsRequest,ListItemsResult> asyncHandler)
Provides a list of metadata entries about folders and objects in the specified folder.
|
Future<PutObjectResult> |
putObjectAsync(PutObjectRequest request)
Uploads an object to the specified path.
|
Future<PutObjectResult> |
putObjectAsync(PutObjectRequest request,
AsyncHandler<PutObjectRequest,PutObjectResult> asyncHandler)
Uploads an object to the specified path.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, deleteObject, describeObject, getCachedResponseMetadata, getObject, listItems, putObject
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
deleteObject, describeObject, getCachedResponseMetadata, getObject, listItems, putObject
public static AWSMediaStoreDataAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteObjectResult> deleteObjectAsync(DeleteObjectRequest request)
AWSMediaStoreDataAsync
Deletes an object at the specified path.
deleteObjectAsync
in interface AWSMediaStoreDataAsync
public Future<DeleteObjectResult> deleteObjectAsync(DeleteObjectRequest request, AsyncHandler<DeleteObjectRequest,DeleteObjectResult> asyncHandler)
AWSMediaStoreDataAsync
Deletes an object at the specified path.
deleteObjectAsync
in interface AWSMediaStoreDataAsync
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<DescribeObjectResult> describeObjectAsync(DescribeObjectRequest request)
AWSMediaStoreDataAsync
Gets the headers for an object at the specified path.
describeObjectAsync
in interface AWSMediaStoreDataAsync
public Future<DescribeObjectResult> describeObjectAsync(DescribeObjectRequest request, AsyncHandler<DescribeObjectRequest,DescribeObjectResult> asyncHandler)
AWSMediaStoreDataAsync
Gets the headers for an object at the specified path.
describeObjectAsync
in interface AWSMediaStoreDataAsync
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<GetObjectResult> getObjectAsync(GetObjectRequest request)
AWSMediaStoreDataAsync
Downloads the object at the specified path. If the object’s upload availability is set to streaming
,
AWS Elemental MediaStore downloads the object even if it’s still uploading the object.
getObjectAsync
in interface AWSMediaStoreDataAsync
public Future<GetObjectResult> getObjectAsync(GetObjectRequest request, AsyncHandler<GetObjectRequest,GetObjectResult> asyncHandler)
AWSMediaStoreDataAsync
Downloads the object at the specified path. If the object’s upload availability is set to streaming
,
AWS Elemental MediaStore downloads the object even if it’s still uploading the object.
getObjectAsync
in interface AWSMediaStoreDataAsync
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<ListItemsResult> listItemsAsync(ListItemsRequest request)
AWSMediaStoreDataAsync
Provides a list of metadata entries about folders and objects in the specified folder.
listItemsAsync
in interface AWSMediaStoreDataAsync
public Future<ListItemsResult> listItemsAsync(ListItemsRequest request, AsyncHandler<ListItemsRequest,ListItemsResult> asyncHandler)
AWSMediaStoreDataAsync
Provides a list of metadata entries about folders and objects in the specified folder.
listItemsAsync
in interface AWSMediaStoreDataAsync
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<PutObjectResult> putObjectAsync(PutObjectRequest request)
AWSMediaStoreDataAsync
Uploads an object to the specified path. Object sizes are limited to 25 MB for standard upload availability and 10 MB for streaming upload availability.
putObjectAsync
in interface AWSMediaStoreDataAsync
public Future<PutObjectResult> putObjectAsync(PutObjectRequest request, AsyncHandler<PutObjectRequest,PutObjectResult> asyncHandler)
AWSMediaStoreDataAsync
Uploads an object to the specified path. Object sizes are limited to 25 MB for standard upload availability and 10 MB for streaming upload availability.
putObjectAsync
in interface AWSMediaStoreDataAsync
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 AWSMediaStoreData
shutdown
in class AWSMediaStoreDataClient