Top Description Methods
org.eclipse.jgit.transport

public Interface ObjectCountCallback

Imports
java.io.OutputStream, org.eclipse.jgit.lib.ProgressMonitor

A callback to tell caller the count of objects ASAP.
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
setObjectCount(long
the count of the objects.
objectCount
)

Invoked when the org.eclipse.jgit.internal.storage.pack.PackWriter has counted the objects to be written to pack.

Method Detail

setObjectCountback to summary
public void setObjectCount(long objectCount) throws WriteAbortedException

Invoked when the org.eclipse.jgit.internal.storage.pack.PackWriter has counted the objects to be written to pack.

An ObjectCountCallback can use this information to decide whether the org.eclipse.jgit.internal.storage.pack.PackWriter#writePack(ProgressMonitor, ProgressMonitor, OutputStream) operation should be aborted.

This callback will be called exactly once.

Parameters
objectCount:long

the count of the objects.

Exceptions
WriteAbortedException:
to indicate that the write operation should be aborted.