TransferUtility
@Deprecated
public interface Transfer
See TransferManager
for more information about creating transfers.
Modifier and Type | Interface and Description |
---|---|
static class |
Transfer.TransferState
Deprecated.
Enumeration of the possible transfer states.
|
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener listener)
Deprecated.
Adds the specified progress listener to the list of listeners receiving
updates about this transfer's progress.
|
void |
addProgressListener(ProgressListener listener)
Deprecated.
Replaced by
addProgressListener(ProgressListener) |
java.lang.String |
getDescription()
Deprecated.
Returns a human-readable description of this transfer.
|
TransferProgress |
getProgress()
Deprecated.
Returns progress information about this transfer.
|
Transfer.TransferState |
getState()
Deprecated.
Returns the current state of this transfer.
|
boolean |
isDone()
Deprecated.
Returns whether or not the transfer is finished (i.e.
|
void |
removeProgressListener(ProgressListener listener)
Deprecated.
Removes the specified progress listener from the list of progress
listeners receiving updates about this transfer's progress.
|
void |
removeProgressListener(ProgressListener listener)
Deprecated.
Replaced by
removeProgressListener(ProgressListener) |
void |
waitForCompletion()
Deprecated.
Waits for this transfer to complete.
|
AmazonClientException |
waitForException()
Deprecated.
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
boolean isDone()
true
if this transfer is finished (i.e.
completed successfully, failed, or was canceled). Returns
false
if otherwise.void waitForCompletion() throws AmazonClientException, AmazonServiceException, java.lang.InterruptedException
AmazonClientException
- If any errors were encountered in the
client while making the request or handling the response.AmazonServiceException
- If any errors occurred in Amazon S3 while
processing the request.java.lang.InterruptedException
- If this thread is interrupted while waiting
for the transfer to complete.AmazonClientException waitForException() throws java.lang.InterruptedException
null
if no errors occurred. This is a blocking call;
the current thread will be suspended until this transfer either fails or
completes successfully.null
if no errors occurred.java.lang.InterruptedException
- If this thread is interrupted while waiting
for the transfer to complete.java.lang.String getDescription()
Transfer.TransferState getState()
void addProgressListener(ProgressListener listener)
listener
- The progress listener to add.void removeProgressListener(ProgressListener listener)
listener
- The progress listener to remove.TransferProgress getProgress()
@Deprecated void addProgressListener(ProgressListener listener)
addProgressListener(ProgressListener)
@Deprecated void removeProgressListener(ProgressListener listener)
removeProgressListener(ProgressListener)
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.