Package org.cache2k.jcache.provider
Class TouchyJCacheAdapter.ExpiryPolicyAdapter<K,V>
- java.lang.Object
-
- org.cache2k.jcache.provider.TouchyJCacheAdapter.ExpiryPolicyAdapter<K,V>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.cache2k.DataAware<K,V>,org.cache2k.expiry.ExpiryPolicy<K,V>,org.cache2k.expiry.ExpiryTimeValues
- Enclosing class:
- TouchyJCacheAdapter<K,V>
public static class TouchyJCacheAdapter.ExpiryPolicyAdapter<K,V> extends Object implements org.cache2k.expiry.ExpiryPolicy<K,V>, Closeable
-
-
Constructor Summary
Constructors Constructor Description ExpiryPolicyAdapter(javax.cache.expiry.ExpiryPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcalculateExpiryTime(K key, V value, long startTime, org.cache2k.CacheEntry<K,V> currentEntry)voidclose()
-
-
-
Method Detail
-
calculateExpiryTime
public long calculateExpiryTime(K key, V value, long startTime, org.cache2k.CacheEntry<K,V> currentEntry)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-