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 TypeMethodDescriptionvoidsetObjectCount(long objectCount) Invoked when thePackWriterhas counted the objects to be written to pack.
-
Method Details
-
setObjectCount
Invoked when thePackWriterhas counted the objects to be written to pack.An
ObjectCountCallbackcan 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.
-