Interface Transfer

    • Method Detail

      • isDone

        boolean isDone()
        Returns whether or not the transfer is finished (i.e. completed successfully, failed, or was canceled).
        Returns:
        Returns true if this transfer is finished (i.e. completed successfully, failed, or was canceled). Returns false if otherwise.
      • waitForException

        AmazonClientException waitForException()
                                        throws InterruptedException
        Waits for this transfer to finish and returns any error that occurred, or returns null if no errors occurred. This is a blocking call; the current thread will be suspended until this transfer either fails or completes successfully.
        Returns:
        Any error that occurred while processing this transfer. Otherwise returns null if no errors occurred.
        Throws:
        InterruptedException - If this thread is interrupted while waiting for the transfer to complete.
      • getDescription

        String getDescription()
        Returns a human-readable description of this transfer.
        Returns:
        A human-readable description of this transfer.
      • getState

        Transfer.TransferState getState()
        Returns the current state of this transfer.
        Returns:
        The current state of this transfer.
      • addProgressListener

        void addProgressListener​(ProgressListener listener)
        Adds the specified progress listener to the list of listeners receiving updates about this transfer's progress.
        Parameters:
        listener - The progress listener to add.
      • removeProgressListener

        void removeProgressListener​(ProgressListener listener)
        Removes the specified progress listener from the list of progress listeners receiving updates about this transfer's progress.
        Parameters:
        listener - The progress listener to remove.
      • getProgress

        TransferProgress getProgress()
        Returns progress information about this transfer.
        Returns:
        The progress information about this transfer.