Module org.elasticsearch.xcore
Class CacheIteratorHelper<K,V>
java.lang.Object
org.elasticsearch.xpack.core.security.support.CacheIteratorHelper<K,V>
A utility class to facilitate iterating over (and modifying) a
Cache.
The semantics of the cache are such that when iterating (with the potential to call Iterator.remove()), we must prevent any
other modifications.
This class provides the necessary methods to support this constraint in a clear manner.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveKeysIf(Predicate<K> removeIf) voidremoveValuesIf(Predicate<V> removeIf)
-
Constructor Details
-
CacheIteratorHelper
-
-
Method Details
-
acquireUpdateLock
-
acquireForIterator
-
removeKeysIf
-
removeValuesIf
-