public interface DownloadUpdated extends DownloadEvent
| Modifier and Type | Method and Description |
|---|---|
default long |
currentSpeed()
Returns the current download speed estimate in bytes/second.
|
default Download |
download()
Returns the
Download instance initiated this event. |
default java.util.Optional<Progress> |
progress()
Returns an
Optional containing the rough percent complete or an empty Optional if we do not know it, because we did not receive the total size. |
default long |
receivedBytes()
Returns the number or received (downloaded) bytes.
|
default long |
totalBytes()
Returns the total size of the downloaded file in bytes.
|
default Download download()
DownloadEventDownload instance initiated this event.download in interface DownloadEventdefault long currentSpeed()
default long totalBytes()
default long receivedBytes()
default java.util.Optional<Progress> progress()
Optional containing the rough percent complete or an empty Optional if we do not know it, because we did not receive the total size.