Package com.oracle.coherence.client
Class RemoteEntrySet<K,V>
- java.lang.Object
-
- com.oracle.coherence.client.RemoteCollection<K,V,Map.Entry<K,V>>
-
- com.oracle.coherence.client.RemoteEntrySet<K,V>
-
- Type Parameters:
K- the type of the underlying cache's keysV- the type of the underlying cache's values
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>,Collection<Map.Entry<K,V>>,Set<Map.Entry<K,V>>
public class RemoteEntrySet<K,V> extends RemoteCollection<K,V,Map.Entry<K,V>> implements Set<Map.Entry<K,V>>
A base class forNamedCacheentry set implementations.This
Setimplementation allows removal but does not allow additions to the collection. MethodsRemoteCollection.add(Object)RemoteCollection.addAll(java.util.Collection)will throw anUnsupportedOperationException.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
NamedCacheand partly to ensure that using this class on a client will not cause all of the data from the underlyingNamedCacheto be pulled back to the caller in one result.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.12
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.coherence.client.RemoteCollection
RemoteCollection.EntryAdvancer<K,V>, RemoteCollection.EntryResultMapEntry
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.client.RemoteCollection
f_client
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteEntrySet(AsyncNamedCacheClient<K,V> map)Create aRemoteEntrySet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object o)Iterator<Map.Entry<K,V>>iterator()booleanremove(Object o)Object[]toArray()<T1> T1[]toArray(T1[] array)-
Methods inherited from class com.oracle.coherence.client.RemoteCollection
add, addAll, clear, containsAll, createEntryAdvancer, equals, getCache, hashCode, isEmpty, removeAll, retainAll, size, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
RemoteEntrySet
protected RemoteEntrySet(AsyncNamedCacheClient<K,V> map)
Create aRemoteEntrySet.- Parameters:
map- theNamedCachethat this entry set is linked to
-
-