Interface LedgersIterator


  • public interface LedgersIterator
    Iterator for ledgers.
    • 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.