public boolean isPush() { int newUserPushTime = Cache.getInstance().getNewUserPushTime(); if (newUserPushTime <= 0) { newUserPushTime = 8; } return System.currentTimeMillis() - createDate > newUserPushTime * 60 * 1000; }
@Override public void run() { try { Cache.getInstance().reloadCache(); } catch (Exception e) { logger.info("reloadCache()异常" + e.toString()); e.printStackTrace(); } }