net.jodah.expiringmap.EntryLoader Maven / Gradle / Ivy
package net.jodah.expiringmap;
/**
* Loads entries on demand.
*
* @param Key type
* @param Value type
*/
public interface EntryLoader {
/**
* Called to load a new value for the {@code key} into an expiring map.
*
* @param key to load a value for
* @return new value to load
*/
V load(K key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy