Class BLProgressCounter

java.lang.Object
com.io7m.brooklime.vanilla.internal.BLProgressCounter

public final class BLProgressCounter extends Object
A progress counter.
  • Constructor Details

    • BLProgressCounter

      public BLProgressCounter(Clock inClock, BLProgressReceiverType inReceiver)
      A progress counter.
      Parameters:
      inClock - The clock used to track time
      inReceiver - The progress receiver
  • Method Details

    • addSizeReceived

      public void addSizeReceived(long extra)
      Add a number of bytes.
      Parameters:
      extra - The byte count
    • startFile

      public void startFile(String inName, long inSizeExpected, int inAttemptIndex, int inAttemptMaximum, int inFileIndex, int inFileCount)
      Start a new file.
      Parameters:
      inName - The file name
      inSizeExpected - The expected size
      inAttemptIndex - The attempt number
      inAttemptMaximum - The maximum number of attempts
      inFileIndex - The file index
      inFileCount - The number of files
    • setSizeReceived

      public void setSizeReceived(long size)
      Set the currently received number of bytes.
      Parameters:
      size - The size