Class TransferProgress
- java.lang.Object
-
- com.amazonaws.services.s3.transfer.TransferProgress
-
public final class TransferProgress extends Object
Describes the progress of a transfer.
-
-
Constructor Summary
Constructors Constructor Description TransferProgress()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetBytesTransfered()Deprecated.Replaced bygetBytesTransferred()longgetBytesTransferred()Returns the number of bytes completed in the associated transfer.doublegetPercentTransfered()Deprecated.Replaced bygetPercentTransferred()doublegetPercentTransferred()Returns a percentage of the number of bytes transferred out of the total number of bytes to transfer.longgetTotalBytesToTransfer()Returns the total size in bytes of the associated transfer, or -1 if the total size isn't known.voidsetTotalBytesToTransfer(long totalBytesToTransfer)voidupdateProgress(long bytes)
-
-
-
Method Detail
-
getBytesTransfered
public long getBytesTransfered()
Deprecated.Replaced bygetBytesTransferred()
-
getBytesTransferred
public long getBytesTransferred()
Returns the number of bytes completed in the associated transfer.- Returns:
- The number of bytes completed in the associated transfer.
-
getTotalBytesToTransfer
public long getTotalBytesToTransfer()
Returns the total size in bytes of the associated transfer, or -1 if the total size isn't known.- Returns:
- The total size in bytes of the associated transfer. Returns or -1 if the total size of the associated transfer isn't known yet.
-
getPercentTransfered
@Deprecated public double getPercentTransfered()
Deprecated.Replaced bygetPercentTransferred()
-
getPercentTransferred
public double getPercentTransferred()
Returns a percentage of the number of bytes transferred out of the total number of bytes to transfer.- Returns:
- A percentage of the number of bytes transferred out of the total number of bytes to transfer; or -1.0 if the total length is not known.
-
updateProgress
public void updateProgress(long bytes)
-
setTotalBytesToTransfer
public void setTotalBytesToTransfer(long totalBytesToTransfer)
-
-