Package org.infinispan.commons.util
Interface CloseableIterable<E>
-
- All Superinterfaces:
AutoCloseable
,Iterable<E>
public interface CloseableIterable<E> extends AutoCloseable, Iterable<E>
Interface that provides semantics of aIterable
andAutoCloseable
interfaces. This is useful when you have data that must be iterated on and may hold resources in the underlying implementation that must be closed.The close method will close any existing iterators that may be open to free resources
- Since:
- 7.0
- Author:
- wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
CloseableIterator<E>
iterator()
-
-
-
Method Detail
-
close
void close()
-
iterator
CloseableIterator<E> iterator()
-
-