问题描述
privateRankItem[]getRankItem(StringrankType,StringrankStandard,StringnodeID){StringrankKey=this.getRankKey(rankType,rankStandard,nodeID);intrefreashTime=PortalCacheManager.getConfigInt(SystemConstants.PORTAL_TOP_REFRESHTIME_KEY,60);RankItem[]rankItems=(RankItem[])super.getDataFromCache(rankKey,refreashTime);if(null==rankItems||0==rankItems.length){Objectlock=LockFactory.getInstance().getLock(rankKey);synchronized(lock){rankItems=(RankItem[])super.getDataFromCache(rankKey,refreashTime);if(null==rankItems||0==rankItems.length){try{rankItems=PortalEngine.getInstance().getRankInfos(rankStandard,rankType,nodeID,0,0);if(null!=rankItems&&0!=rankItems.length){super.putWithoutNotification(rankKey,rankItems);}}catch(PortalExceptione){log.error(e.toString());}}}}returnrankItems;}
解决方案
解决方案二:
什么问题也不说。jf了。