Lines Matching defs:cached
43 * If the WeakReference is null or empty, the cached data is recomputed.</p>
51 * Interval of time in ms during which the cached table data
57 * A weak refernce holding cached table data.
62 * true if the given cached table data is obsolete.
64 protected boolean isObsolete(SnmpCachedData cached) {
65 if (cached == null) return true;
67 return ((System.currentTimeMillis() - cached.lastUpdated) > validity);
71 * Returns the cached table data.
72 * Returns null if the cached data is obsolete, or if there is no
73 * cached data, or if the cached data was garbage collected.
74 * @return a still valid cached data or null.
78 final SnmpCachedData cached = datas.get();
79 if ((cached == null) || isObsolete(cached)) return null;
80 return cached;
84 * Returns the cached table data, if it is still valid,
91 * whether the cached data is obsolete, and {
95 * @return the valid cached data, or the recomputed table data.
98 final SnmpCachedData cached = getCachedDatas();
99 if (cached != null) return cached;
106 * Recompute cached data.
114 * This method should return the cached table data if it is still