Package org.infinispan.commons.util
Interface CloseableIteratorSet<E>
-
- All Superinterfaces:
CloseableIteratorCollection<E>
,Collection<E>
,Iterable<E>
,Set<E>
- All Known Subinterfaces:
CacheSet<E>
- All Known Implementing Classes:
AbstractDelegatingCacheSet
,AbstractDelegatingCloseableIteratorSet
,CacheSetMapper
,CloseableIteratorSetAdapter
,DistributionBulkInterceptor.BackingEntrySet
,DistributionBulkInterceptor.BackingKeySet
,DistributionBulkInterceptor.TxBackingEntrySet
,WriteableCacheSetMapper
public interface CloseableIteratorSet<E> extends Set<E>, CloseableIteratorCollection<E>
A set that defines an iterator method that returns aCloseableIterator
instead of a non closeable one. This is needed so that iterators can be properly cleaned up. All other methods will internally clean up any iterators created and don't have other side effects.- Since:
- 7.0
- Author:
- wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloseableSpliterator<E>
spliterator()
-
Methods inherited from interface org.infinispan.commons.util.CloseableIteratorCollection
iterator, parallelStream, stream
-
Methods inherited from interface java.util.Collection
removeIf, toArray
-
-
-
-
Method Detail
-
spliterator
CloseableSpliterator<E> spliterator()
Description copied from interface:CloseableIteratorCollection
This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
spliterator
in interfaceCloseableIteratorCollection<E>
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
- Specified by:
spliterator
in interfaceSet<E>
-
-