Package org.hyperledger.fabric.client
Interface CloseableIterator<T>
- Type Parameters:
T
- The type of elements returned by this iterator.
- All Superinterfaces:
AutoCloseable
,Iterator<T>
An iterator that can be closed when the consumer does not want to read any more elements, freeing up resources that
may be held by the iterator.
Note that iteration may throw GatewayRuntimeException
if the gRPC connection fails.
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-