org.thymeleaf.util
Interface CacheMap.ICacheMapEntryValidityChecker<K,V>
- Type Parameters:
K
- The type of the cache map keysV
- The type of the cache map values
- All Superinterfaces:
- Serializable
- Enclosing class:
- CacheMap<K,V>
public static interface CacheMap.ICacheMapEntryValidityChecker<K,V>
- extends Serializable
Defines the logic needed to (optionally) validate an entry living in a
CacheMap
before returning it as the result of a get
operation. If not valid, the entry will be removed
from the cache (and null will be returned).
- Since:
- 1.1.3
- Author:
- Daniel Fernández
checkIsValueStillValid
boolean checkIsValueStillValid(K key,
V value,
long entryCreationTimestamp)
Copyright © 2012 The THYMELEAF team. All Rights Reserved.