Package org.apache.bookkeeper.client.api
Interface LedgersIterator
-
public interface LedgersIterator
Iterator for ledgers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Return true if there is at least one ledger to visit.long
next()
Return next ledger id.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOException
Return 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.
-
-