Package org.apache.bookkeeper.client.api
Interface LedgersIterator
-
public interface LedgersIteratorIterator for ledgers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Return true if there is at least one ledger to visit.longnext()Return next ledger id.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOExceptionReturn true if there is at least one ledger to visit.- Returns:
- true if there is at least one ledger to visit.
- Throws:
java.io.IOException- thrown when there is a problem accessing the ledger metadata store.
-
next
long next() throws java.io.IOException
Return next ledger id.- Returns:
- next ledger id.
- Throws:
java.io.IOException- thrown when there is a problem accessing the ledger metadata store.
-
-