public interface ListLedgersResult
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
LedgersIterator |
iterator()
Creates a
LedgersIterator. |
java.lang.Iterable<java.lang.Long> |
toIterable()
Creates a
Iterable, which wraps a LedgersIterator. |
LedgersIterator iterator()
LedgersIterator.
This method must be called once per ListLedgersResult instance.LedgersIterator instance.java.lang.Iterable<java.lang.Long> toIterable()
Iterable, which wraps a LedgersIterator.
This method must be called once per ListLedgersResult instance.
IOException) are wrapped within a RuntimeException.
if you want to take care of these cases, it is better to use LedgersIterator.Iterable instance, containing ledger ids.Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.