-
public interface ObjectCountCallbackA 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 voidsetObjectCount(long objectCount)Invoked when thePackWriterhas counted the objects to be written to pack.
-
-
-
Method Detail
-
setObjectCount
void setObjectCount(long objectCount) throws WriteAbortedExceptionInvoked 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.
-
-