Class 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 Detail

      • ExpiryPolicyAdapter

        public ExpiryPolicyAdapter​(javax.cache.expiry.ExpiryPolicy policy)
    • Method Detail

      • calculateExpiryTime

        public long calculateExpiryTime​(K key,
                                        V value,
                                        long startTime,
                                        org.cache2k.CacheEntry<K,​V> currentEntry)
        Specified by:
        calculateExpiryTime in interface org.cache2k.expiry.ExpiryPolicy<K,​V>