Interface Loader<K,​V>

    • Method Detail

      • shallCheck

        boolean shallCheck​(K src,
                           long expiredMillis)
        Returns whether to call getLastModified(K). If false, it assumes the current cached content is up-to-date.
        Parameters:
        expiredMillis - how many milli-seconds are expired after the last check. In most cases, just return true if expiredMillis > 0
      • getLastModified

        long getLastModified​(K src)
        Returns the last modified time, or -1 if reload is required or not exists.