K - Key typeV - Value typepublic class TCacheHolderIterator<K,V> extends Object implements Iterator<javax.cache.Cache.Entry<K,TCacheHolder<V>>>
remove() is called it has the same effects, as calling cache.remove(key). This includes effects on statistics and the CacheListener REMOVE notification.| Constructor and Description |
|---|
TCacheHolderIterator(Cache<K,V> tcache,
ConcurrentMap<K,AccessTimeObjectHolder<V>> objects,
TCacheExpiryPolicy expiryPolicy,
boolean touch) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
javax.cache.Cache.Entry<K,TCacheHolder<V>> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic TCacheHolderIterator(Cache<K,V> tcache, ConcurrentMap<K,AccessTimeObjectHolder<V>> objects, TCacheExpiryPolicy expiryPolicy, boolean touch)
public boolean hasNext()
hasNext in interface Iterator<javax.cache.Cache.Entry<K,TCacheHolder<V>>>public javax.cache.Cache.Entry<K,TCacheHolder<V>> next()
next in interface Iterator<javax.cache.Cache.Entry<K,TCacheHolder<V>>>public void remove()
remove in interface Iterator<javax.cache.Cache.Entry<K,TCacheHolder<V>>>Copyright © 2018 trivago. All rights reserved.