Package org.apache.subversion.javahl
Class ProgressEvent
java.lang.Object
org.apache.subversion.javahl.ProgressEvent
- All Implemented Interfaces:
Serializable
public class ProgressEvent extends Object implements 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:
- Serialized Form
-
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
getProgress()
long
getTotal()
-
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.
-