com.netease.cloud.services.nos.transfer
public abstract class TransferProgress extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
bytesTransfered |
protected long |
totalBytesToTransfer |
Constructor and Description |
---|
TransferProgress() |
Modifier and Type | Method and Description |
---|---|
long |
getBytesTransfered()
Returns the number of bytes completed in the associated transfer.
|
double |
getPercentTransfered()
Returns a percentage of the number of bytes transfered out of the total
number of bytes to transfer.
|
long |
getTotalBytesToTransfer()
Returns the total size in bytes of the associated transfer, or -1
if the total size isn't known.
|
protected volatile long bytesTransfered
protected volatile long totalBytesToTransfer
public long getBytesTransfered()
public long getTotalBytesToTransfer()
public double getPercentTransfered()
Copyright © 2017. All Rights Reserved.