Interface DownloadUpdated

All Superinterfaces:
DownloadEvent, Event

public interface DownloadUpdated extends DownloadEvent
An event indicating that the download has been updated.
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Returns the current download speed estimate in bytes/second.
    default Download
    Returns the Download instance initiated this event.
    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
    Returns the number or received (downloaded) bytes.
    default long
    Returns the total size of the downloaded file in bytes.
  • Method Details

    • download

      default Download download()
      Description copied from interface: DownloadEvent
      Returns the Download instance initiated this event.
      Specified by:
      download in interface DownloadEvent
    • currentSpeed

      default long currentSpeed()
      Returns the current download speed estimate in bytes/second.
    • totalBytes

      default long totalBytes()
      Returns the total size of the downloaded file in bytes.
    • receivedBytes

      default long receivedBytes()
      Returns the number or received (downloaded) bytes.
    • progress

      default 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.