Interface ListLedgersResult

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface ListLedgersResult
    extends java.lang.AutoCloseable
    Utility container for listing ledgers.
    • Method Detail

      • iterator

        LedgersIterator iterator()
        Creates a LedgersIterator. This method must be called once per ListLedgersResult instance.
        Returns:
        a LedgersIterator instance.
      • toIterable

        java.lang.Iterable<java.lang.Long> toIterable()
        Creates a Iterable, which wraps a LedgersIterator. This method must be called once per ListLedgersResult instance.
        Metadata store access exceptions (IOException) are wrapped within a RuntimeException. if you want to take care of these cases, it is better to use LedgersIterator.
        Returns:
        a Iterable instance, containing ledger ids.