Top Description Methods
org.eclipse.jgit.lib

public Interface AsyncObjectSizeQueue<T extends ObjectId>

extends AsyncOperation
Type Parameters
<T>
type of identifier supplied to the call that made the queue.
Imports
java.io.IOException, org.eclipse.jgit.errors.MissingObjectException

Queue to examine object sizes asynchronously. A queue may perform background lookup of object sizes and supply them (possibly out-of-order) to the application.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the current object, null if the implementation lost track. Implementations may for performance reasons discard the caller's ObjectId and provider their own through getObjectId().
getCurrent
()

getCurrent.

public ObjectId

Returns:

the ObjectId of the current object. Never null.
getObjectId
()

Get the ObjectId of the current object.

public long

Returns:

the size of the current object.
getSize
()

Get the size of the current object.

public boolean

Returns:

true if there is a result available; false if the queue has finished its input iteration.
next
()

Position this queue onto the next available result.

Inherited from org.eclipse.jgit.lib.AsyncOperation:
cancelrelease

Method Detail

getCurrentback to summary
public T getCurrent()

getCurrent.

Returns:T

the current object, null if the implementation lost track. Implementations may for performance reasons discard the caller's ObjectId and provider their own through getObjectId().

getObjectIdback to summary
public ObjectId getObjectId()

Get the ObjectId of the current object. Never null.

Returns:ObjectId

the ObjectId of the current object. Never null.

getSizeback to summary
public long getSize()

Get the size of the current object.

Returns:long

the size of the current object.

nextback to summary
public boolean next() throws MissingObjectException, IOException

Position this queue onto the next available result.

Returns:boolean

true if there is a result available; false if the queue has finished its input iteration.

Exceptions
MissingObjectException:
the object does not exist. If the implementation is retaining the application's objects getCurrent() will be the current object that is missing. There may be more results still available, so the caller should continue invoking next to examine another result.
IOException:
the object store cannot be accessed.