接口 ExpiringEntryLoader<K,V>

类型参数:
K - Key type
V - Value type

public interface ExpiringEntryLoader<K,V>
Loads entries on demand, with control over each value's expiry duration (i.e. variable expiration).
  • 方法概要

    修饰符和类型
    方法
    说明
    load(K key)
    Called to load a new value for the key into an expiring map.
  • 方法详细资料

    • load

      ExpiringValue<V> load(K key)
      Called to load a new value for the key into an expiring map.
      参数:
      key - to load a value for
      返回:
      contains new value to load along with its expiry duration