org.apache.shindig.gadgets.preload
Interface PreloaderService

All Known Implementing Classes:
ConcurrentPreloaderService

public interface PreloaderService

Handles preloading operations, such as HTTP fetches, social data retrieval, or anything else that would benefit from preloading on the server instead of incurring a network request for users.


Method Summary
 Collection<PreloadedData> preload(Collection<Callable<PreloadedData>> tasks)
          Execute preloads with a specific set of preload tasks.
 Collection<PreloadedData> preload(Gadget gadget)
          Begin all preload operations.
 

Method Detail

preload

Collection<PreloadedData> preload(Gadget gadget)
Begin all preload operations.

Parameters:
gadget - The gadget that the operations will be performed for.
Returns:
The preloads for the gadget.

preload

Collection<PreloadedData> preload(Collection<Callable<PreloadedData>> tasks)
Execute preloads with a specific set of preload tasks.



Copyright © 2007-2012. All Rights Reserved.