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