Class AbstractCloseableIteratorCollection<O,K,V>

java.lang.Object
java.util.AbstractCollection<O>
org.infinispan.commands.read.AbstractCloseableIteratorCollection<O,K,V>
All Implemented Interfaces:
Iterable<O>, Collection<O>, org.infinispan.commons.util.CloseableIteratorCollection<O>

public abstract class AbstractCloseableIteratorCollection<O,K,V> extends AbstractCollection<O> implements org.infinispan.commons.util.CloseableIteratorCollection<O>
Abstract collection that uses an underlying Cache instance to do various operations. This is useful for a backing collection such as entrySet, keySet or values from the Map interface. Implementors only need to implement individual methods such as Collection.contains(Object), Collection.remove(Object) and CloseableIteratorCollection.iterator(). The Collection.add(Object) by default will throw an UnsupportedOperationException.

Any implementor should always use the underlying Cache instance when performing writes on this collection. This is to ensure that the entry is updated using all levels of interceptor stack

Since:
7.0
Author:
wburns