blob: 279697b6eb1cc95a3d037a29a12a0f784ebada06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Copyright (C) 2010, Google Inc. and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.eclipse.jgit.revwalk;
import java.io.IOException;
import org.eclipse.jgit.errors.MissingObjectException;
import org.eclipse.jgit.lib.AsyncOperation;
/**
* Queue to lookup and parse objects asynchronously.
*
* A queue may perform background lookup of objects and supply them (possibly
* out-of-order) to the application.
*/
public interface AsyncRevObjectQueue extends AsyncOperation {
/**
* Obtain the next object.
*
* @return the object; null if there are no more objects remaining.
* @throws org.eclipse.jgit.errors.MissingObjectException
* the object does not exist. There may be more objects
* remaining in the iteration, the application should call
* {@link #next()} again.
* @throws java.io.IOException
* the object store cannot be accessed.
*/
RevObject next() throws MissingObjectException, IOException;
}
|