Package org.tigris.subversion.javahl
Class ProgressEvent
java.lang.Object
org.tigris.subversion.javahl.ProgressEvent
- All Implemented Interfaces:
Serializable
The event passed to the
ProgressListener.onProgress(ProgressEvent)
API to inform SVNClientInterface
of command progress (in terms of bytes).- Since:
- 1.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
ConstructorsConstructorDescriptionProgressEvent
(long progress, long total) This constructor is to be used by the native code.ProgressEvent
(ProgressEvent aEvent) A backward-compat constructor. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
progress
private long progressThe number of bytes already transferred. -
total
private long totalThe total number of bytes, or-1
if not known.
-
-
Constructor Details
-
ProgressEvent
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.
-
ProgressEvent
A backward-compat constructor.
-
-
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.
-