Class DownloadResult

java.lang.Object
io.goobi.viewer.model.files.external.DownloadResult

public class DownloadResult extends Object
Represents an asynchronous file download in progress, holding a Future for the resulting Path, the total expected file size, and a progress monitor that reports how many bytes have been written so far.
  • Constructor Details

    • DownloadResult

      public DownloadResult(Supplier<Long> progressMonitor, Future<Path> resultPath, long size)
  • Method Details

    • getProgressMonitor

      public Supplier<Long> getProgressMonitor()
    • getPath

      public Future<Path> getPath()
    • getSize

      public long getSize()
    • getProgressPercent

      public long getProgressPercent()