public interface ObjectCountCallback
Modifier and Type | Method and Description |
---|---|
void |
setObjectCount(long objectCount)
Invoked when the
PackWriter has counted the objects to be
written to pack. |
void setObjectCount(long objectCount) throws WriteAbortedException
PackWriter
has counted the objects to be
written to pack.
An ObjectCountCallback
can use this information to decide
whether the
PackWriter.writePack(ProgressMonitor, ProgressMonitor, OutputStream)
operation should be aborted.
This callback will be called exactly once.
objectCount
- the count of the objects.WriteAbortedException
- to indicate that the write operation should be aborted.Copyright © 2015 Eclipse JGit Project. All rights reserved.