You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AsyncRevObjectQueue.java 1.2KB

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