public Collection<PreloadedData> preload(Gadget gadget) { Collection<Callable<PreloadedData>> tasks = preloader.createPreloadTasks(gadget); return preload(tasks); }
@Override protected Collection<PreloadedData> delegate() { if (loaded == null) { loaded = getData(); } return loaded; }
public Collection<Object> toJson() throws PreloadException { if (t instanceof PreloadException) { throw (PreloadException) t; } throw new PreloadException(t); } }
public PreloadedData call() throws Exception { HttpRequest request = newHttpRequest(context, preload); return new HttpPreloadData(requestPipeline.execute(request), key); } }
public static TestFuture throwsExecutionWrapped() { TestFuture future = new TestFuture(null); future.throwsExecutionWrapped = true; return future; }
public Collection<PreloadedData> preload(Gadget gadget) { Collection<Callable<PreloadedData>> tasks = preloader.createPreloadTasks(gadget); return preload(tasks); }
public Collection<Object> toJson() throws PreloadException { if (t instanceof PreloadException) { throw (PreloadException) t; } throw new PreloadException(t); } }
public PreloadedData call() throws Exception { HttpRequest request = newHttpRequest(context, preload); return new HttpPreloadData(requestPipeline.execute(request), key); } }
public static TestFuture throwsInterrupted() { TestFuture future = new TestFuture(null); future.throwsInterrupted = true; return future; }
@Override protected Collection<PreloadedData> delegate() { if (loaded == null) { loaded = getData(); } return loaded; }
public Collection<PreloadedData> preload(Gadget gadget) { Collection<Callable<PreloadedData>> tasks = preloader.createPreloadTasks(gadget); return preload(tasks); }
public Collection<Object> toJson() throws PreloadException { if (t instanceof PreloadException) { throw (PreloadException) t; } throw new PreloadException(t); } }
public PreloadedData call() throws Exception { HttpRequest request = newHttpRequest(context, preload); return new HttpPreloadData(requestPipeline.execute(request), key); } }
public static TestFuture throwsInterrupted() { TestFuture future = new TestFuture(null); future.throwsInterrupted = true; return future; }
@Override protected Collection<PreloadedData> delegate() { if (loaded == null) { loaded = getData(); } return loaded; }
public static TestFuture throwsExecution() { TestFuture future = new TestFuture(null); future.throwsExecution = true; return future; }
public static TestFuture throwsExecutionWrapped() { TestFuture future = new TestFuture(null); future.throwsExecutionWrapped = true; return future; }
public static TestFuture throwsInterrupted() { TestFuture future = new TestFuture(null); future.throwsInterrupted = true; return future; }
public static TestFuture throwsExecution() { TestFuture future = new TestFuture(null); future.throwsExecution = true; return future; }
public static TestFuture throwsExecutionWrapped() { TestFuture future = new TestFuture(null); future.throwsExecutionWrapped = true; return future; }