Class Prefetcher


  • public class Prefetcher
    extends java.lang.Object
    This class allows requesting the download of resources before they are strictly needed. See the classes that implement PrefetchableResource. Currently, the only supported resource type is RunAsyncCode.
    • Constructor Summary

      Constructors 
      Constructor Description
      Prefetcher()  
    • Constructor Detail

      • Prefetcher

        public Prefetcher()
    • Method Detail

      • prefetch

        public static void prefetch​(java.lang.Iterable<? extends PrefetchableResource> resources)
        Specify which resources should be prefetched.
      • start

        public static void start()
        Start prefetching.
      • stop

        public static void stop()
        Stop prefetching.