/** * Gets the preloaded data, handling any exceptions from Future processing. */ protected PreloadedData getPreloadedData(Future<PreloadedData> preloadedDataFuture) { try { return preloadedDataFuture.get(); } catch (ExecutionException ee) { return new FailedPreload(ee.getCause()); } catch (InterruptedException ie) { // Do NOT Propagate the interrupt throw new RuntimeException("Preloading was interrupted by thread termination", ie); } }
/** * Gets the preloaded data, handling any exceptions from Future processing. */ protected PreloadedData getPreloadedData(Future<PreloadedData> preloadedDataFuture) { try { return preloadedDataFuture.get(); } catch (ExecutionException ee) { return new FailedPreload(ee.getCause()); } catch (InterruptedException ie) { // Do NOT Propagate the interrupt throw new RuntimeException("Preloading was interrupted by thread termination", ie); } }
/** * Gets the preloaded data, handling any exceptions from Future processing. */ protected PreloadedData getPreloadedData(Future<PreloadedData> preloadedDataFuture) { try { return preloadedDataFuture.get(); } catch (ExecutionException ee) { return new FailedPreload(ee.getCause()); } catch (InterruptedException ie) { // Do NOT Propagate the interrupt throw new RuntimeException("Preloading was interrupted by thread termination", ie); } }