Package org.eclipse.jgit.transport
Interface ObjectCountCallback
-
public interface ObjectCountCallback
A callback to tell caller the count of objects ASAP.- Since:
- 4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setObjectCount(long objectCount)
Invoked when thePackWriter
has counted the objects to be written to pack.
-
-
-
Method Detail
-
setObjectCount
void setObjectCount(long objectCount) throws WriteAbortedException
Invoked when thePackWriter
has counted the objects to be written to pack.An
ObjectCountCallback
can use this information to decide whether thePackWriter.writePack(ProgressMonitor, ProgressMonitor, OutputStream)
operation should be aborted.This callback will be called exactly once.
- Parameters:
objectCount
- the count of the objects.- Throws:
WriteAbortedException
- to indicate that the write operation should be aborted.
-
-