Class ProgressEvent

java.lang.Object
org.apache.subversion.javahl.ProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class ProgressEvent extends java.lang.Object implements java.io.Serializable
The event passed to the ProgressCallback.onProgress(org.apache.subversion.javahl.ProgressEvent) API to inform ISVNClient of command progress (in terms of bytes).
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private long
    The number of bytes already transferred.
    private static final long
     
    private long
    The total number of bytes, or -1 if not known.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProgressEvent(long progress, long total)
    This constructor is to be used by the native code.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • progress

      private long progress
      The number of bytes already transferred.
    • total

      private long total
      The total number of bytes, or -1 if not known.
  • Constructor Details

    • ProgressEvent

      public ProgressEvent(long progress, long total)
      This constructor is to be used by the native code.
      Parameters:
      progress - The number of bytes already transferred.
      total - The total number of bytes, or -1 if not known.
  • Method Details

    • getProgress

      public long getProgress()
      Returns:
      The number of bytes already transferred.
    • getTotal

      public long getTotal()
      Returns:
      The total number of bytes, or -1 if not known.