Subversion Repositories SmartDukaan

Rev

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

Rev 10197 Rev 10199
Line 58... Line 58...
58
			e.printStackTrace();
58
			e.printStackTrace();
59
		}
59
		}
60
		try {
60
		try {
61
			time = System.currentTimeMillis();
61
			time = System.currentTimeMillis();
62
			flipkartPricingItems = catalogServiceClient.getMarketPlaceItemsForPriceUpdate(8);
62
			flipkartPricingItems = catalogServiceClient.getMarketPlaceItemsForPriceUpdate(8);
-
 
63
			List<FlipkartItem> flipkartItems = null;
-
 
64
			boolean retry = true;
-
 
65
			while(retry){
-
 
66
				try{
63
			List<FlipkartItem> flipkartItems = catalogServiceClient.getAllFlipkartItems();
67
					flipkartItems = catalogServiceClient.getAllFlipkartItems();
-
 
68
					retry = false;
-
 
69
				}
-
 
70
				catch(Exception e){
-
 
71
					catalogServiceClient = new CatalogClient().getClient();
-
 
72
				}
-
 
73
			}
64
			for(FlipkartItem flipkartItem:flipkartItems){
74
			for(FlipkartItem flipkartItem:flipkartItems){
65
				flipkartItemsMap.put(flipkartItem.getItem_id(),flipkartItem);
75
				flipkartItemsMap.put(flipkartItem.getItem_id(),flipkartItem);
66
			}
76
			}
67
			List<Item> aliveItems = catalogServiceClient.getAllAliveItems();
77
			List<Item> aliveItems = catalogServiceClient.getAllAliveItems();
68
			for(in.shop2020.model.v1.catalog.Item thriftItem:aliveItems){
78
			for(in.shop2020.model.v1.catalog.Item thriftItem:aliveItems){