Interface CloseableIterator<T>

Type Parameters:
T - The type of elements returned by this iterator.
All Superinterfaces:
AutoCloseable, Iterator<T>

public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable
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.