public abstract class AbstractLoader<K,V> extends Object implements Loader<K,V>
Loader.Resource<V>| Constructor and Description |
|---|
AbstractLoader() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(K src)
Returns the last modified time, or -1 if reload is required or not exists.
|
boolean |
shallCheck(K src,
long expiredMillis)
Returns whether to call
Loader.getLastModified(K). |
public boolean shallCheck(K src, long expiredMillis)
LoaderLoader.getLastModified(K).
If false, it assumes the current cached content is up-to-date.shallCheck in interface Loader<K,V>expiredMillis - how many milli-seconds are expired after the last
check. In most cases, just return true if expiredMillis > 0Copyright © 2018. All rights reserved.