public class QueryCacheRecordHashMap extends SampleableConcurrentHashMap<Data,QueryCacheRecord> implements SampleableEvictableStore<Data,QueryCacheRecord>
Modifier and Type | Class and Description |
---|---|
class |
QueryCacheRecordHashMap.QueryCacheEvictableSamplingEntry |
SampleableConcurrentHashMap.SamplingEntry<K,V>
ConcurrentReferenceHashMap.Option, ConcurrentReferenceHashMap.ReferenceType, ConcurrentReferenceHashMap.SimpleEntry<K,V>, ConcurrentReferenceHashMap.WriteThroughEntry
AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
QueryCacheRecordHashMap(SerializationService serializationService,
int initialCapacity) |
QueryCacheRecordHashMap(SerializationService serializationService,
int initialCapacity,
float loadFactor,
int concurrencyLevel,
ConcurrentReferenceHashMap.ReferenceType keyType,
ConcurrentReferenceHashMap.ReferenceType valueType,
EnumSet<ConcurrentReferenceHashMap.Option> options) |
Modifier and Type | Method and Description |
---|---|
protected QueryCacheRecordHashMap.QueryCacheEvictableSamplingEntry |
createSamplingEntry(Data key,
QueryCacheRecord value) |
<C extends EvictionCandidate<Data,QueryCacheRecord>> |
evict(Iterable<C> evictionCandidates,
EvictionListener<Data,QueryCacheRecord> evictionListener)
The evict method is called by the
EvictionStrategy to eventually evict, by the policy, selected
candidates from the internal data structures. |
Iterable<QueryCacheRecordHashMap.QueryCacheEvictableSamplingEntry> |
sample(int sampleCount)
The sample method is used to sample a number of entries (defined by the samples parameter) from
the internal data structure.
|
fetchEntries, fetchKeys, getRandomSamples, isValidForFetching, isValidForSampling
applyIfAbsent, applyIfPresent, clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, purgeStaleEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
clone, equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
public QueryCacheRecordHashMap(SerializationService serializationService, int initialCapacity)
public QueryCacheRecordHashMap(SerializationService serializationService, int initialCapacity, float loadFactor, int concurrencyLevel, ConcurrentReferenceHashMap.ReferenceType keyType, ConcurrentReferenceHashMap.ReferenceType valueType, EnumSet<ConcurrentReferenceHashMap.Option> options)
protected QueryCacheRecordHashMap.QueryCacheEvictableSamplingEntry createSamplingEntry(Data key, QueryCacheRecord value)
createSamplingEntry
in class SampleableConcurrentHashMap<Data,QueryCacheRecord>
public <C extends EvictionCandidate<Data,QueryCacheRecord>> int evict(Iterable<C> evictionCandidates, EvictionListener<Data,QueryCacheRecord> evictionListener)
EvictableStore
EvictionStrategy
to eventually evict, by the policy, selected
candidates from the internal data structures.evict
in interface EvictableStore<Data,QueryCacheRecord>
evictionCandidates
- Multiple EvictionCandidate
to be evictedevictionListener
- EvictionListener
to listen evicted entriespublic Iterable<QueryCacheRecordHashMap.QueryCacheEvictableSamplingEntry> sample(int sampleCount)
SampleableEvictableStore
sample
in interface SampleableEvictableStore<Data,QueryCacheRecord>
sampleCount
- Entry count to be sampledEvictionCandidate
to be evictedCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.