T - public interface ForcedEvictable<T>
Storage as capable of running forced-evictions.
It's surprisingly difficult to mass-remove entries without
creating clusters after a few cycles. Data structures like
Open Addressing Hash Map with linear probing are very prone
to clustering. This leads to a performance degradation.
Iterator returned by newForcedEvictionValuesIterator()
is optimized for mass removals and it should do its best
to prevent data clustering.| Modifier and Type | Method and Description |
|---|---|
Iterator<T> |
newForcedEvictionValuesIterator()
Return iterator to be used for forced evictions.
|
Iterator<T> newForcedEvictionValuesIterator()
Iterator.remove()
method to remove a current record or a Storage.removeRecord(Object) - but it's only allowed to remove
a record the iterator is currently pointing to. No other modification of the underlying storage is
allowed while using this iterator.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.