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
Modifier and TypeMethodDescriptionvoid
setObjectCount
(long objectCount) Invoked when thePackWriter
has counted the objects to be written to pack.
-
Method Details
-
setObjectCount
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.
-