示例#1
0
 public boolean isContentValid() {
   if (myLoadedTime < 0) {
     return false;
   }
   final int reloadTime = 15 * 60 * 1000; // 15 minutes in milliseconds
   return System.currentTimeMillis() - myLoadedTime < reloadTime;
 }
示例#2
0
 public void updateLoadedTime() {
   myLoadedTime = System.currentTimeMillis();
   FBTree tree = Parent;
   while (tree instanceof NetworkCatalogTree) {
     ((NetworkCatalogTree) tree).myLoadedTime = myLoadedTime;
     tree = tree.Parent;
   }
 }