示例#1
0
 @Override
 public void checkIfLoaded() {
   if (isLoaded()) {
     try {
       // check all loading futures for exceptions
       FutureUtil.checkAllDone(loadingFutures);
     } catch (Exception e) {
       logger.severe("Exception while loading map " + name, e);
       ExceptionUtil.rethrow(e);
     } finally {
       loadingFutures.clear();
     }
   } else {
     keyLoader.triggerLoadingWithDelay();
     throw new RetryableHazelcastException(
         "Map " + getName() + " is still loading data from external store");
   }
 }