Class RemoteValues<K,​V>

  • Type Parameters:
    K - the type of the underlying cache's keys
    V - the type of the underlying cache's values
    All Implemented Interfaces:
    Iterable<V>, Collection<V>

    public class RemoteValues<K,​V>
    extends RemoteCollection<K,​V,​V>
    implements Collection<V>
    A base class for NamedCache values collection implementations.

    This Collection implementation allows removal but does not allow additions to the collection. Methods RemoteCollection.add(Object) RemoteCollection.addAll(Collection) will throw an UnsupportedOperationException.

    Some methods in this class are intentionally inefficient partly due to their being a more efficient means to perform the same task using the underlying NamedCache and partly to ensure that using this class on a client will not cause all of the data from the underlying NamedCache to be pulled back to the caller in one result.

    Since:
    20.06
    Author:
    Jonathan Knight 2019.11.12