Class InternalCacheSet<E>

java.lang.Object
org.infinispan.InternalCacheSet<E>
Type Parameters:
E - The element type
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>, CacheCollection<E>, CacheSet<E>, CloseableIteratorCollection<E>, CloseableIteratorSet<E>

public abstract class InternalCacheSet<E> extends Object implements CacheSet<E>
Base class for internal classes used in cache collections.

It extends CacheSet because that's what interceptors used return for KeySetCommand and EntrySetCommand, but because these classes are only used internally, we can avoid implementing most of the methods.

Subclasses only need to implement localPublisher(IntSet) and localPublisher(int), and a facade class like CacheBackedKeySet implements the rest of the CacheSet methods.

Since:
14.0
Author:
Dan Berindei