ProgressListener
to receive // asynchronous notifications about your transfer's progress. myUpload.addProgressListener(myProgressListener); // Or you can block the current thread and wait for your transfer to // to complete. If the transfer fails, this method will throw an // AmazonClientException or AmazonServiceException detailing the reason. myUpload.waitForCompletion(); Note: Transfers are stored in memory. If the JVM is restarted, previous transfers are no longer accessible. If needed, clean up any multipart uploads that are incomplete.
All its operations are strictly synchronous and throw a {@code StorageException} if they fail. The implementations have to make surethat
A transfer manager may organize files according to their type or name as it is optimal for the given storage. {@link RemoteFile}s can be classified by their sub-type. For network-transfer optimization reasons, it might be useful to place {@link MultichunkRemoteFile}s and {@link DatabaseRemoteFile}s in a separate sub-folder on the remote storage.
@author Philipp C. Heckel
|
|
|
|