Subversion Repositories SmartDukaan

Rev

Rev 12620 | Rev 13425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12620 Rev 12626
Line 264... Line 264...
264
    
264
    
265
	
265
	
266
	
266
	
267
	public static Map<Long, ExclusiveAffiliateItemInfo> getExclusiveAffiliateItems(){
267
	public static Map<Long, ExclusiveAffiliateItemInfo> getExclusiveAffiliateItems(){
268
		try{
268
		try{
-
 
269
			Long currentTime = new Date().getTime();
269
			CatalogClient client = new CatalogClient();
270
			CatalogClient client = new CatalogClient();
270
			if(exclusiveAffiliateItems == null || fifteenMinsCounter > new Date().getTime()) {
271
			if(exclusiveAffiliateItems == null || fifteenMinsCounter < currentTime) {
271
				exclusiveAffiliateItems = client.getClient().getExAffiliateItemInfo();
272
				exclusiveAffiliateItems = client.getClient().getExAffiliateItemInfo();
272
				fifteenMinsCounter = new Date().getTime() + 15*60000;
273
				fifteenMinsCounter = new Date().getTime() + 15*60000;
273
			}
274
			}
274
		}catch(Exception ce){
275
		}catch(Exception ce){
275
			logger.error("Unable to fetch exclusive items from catalog", ce);
276
			logger.error("Unable to fetch exclusive items from catalog", ce);