public abstract class AbstractLoader<K,V> extends java.lang.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)
Loader
Loader.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 © 2005-2018 Potix Corporation. All Rights Reserved.