public class Prefetcher
extends java.lang.Object
PrefetchableResource.
Currently, the only supported resource type is RunAsyncCode.| Constructor and Description |
|---|
Prefetcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
prefetch(java.lang.Iterable<? extends PrefetchableResource> resources)
Specify which resources should be prefetched.
|
static void |
prefetch(PrefetchableResource resource)
Helper method to call
prefetch(Iterable) with a single resource. |
static void |
start()
Start prefetching.
|
static void |
stop()
Stop prefetching.
|
public static void prefetch(java.lang.Iterable<? extends PrefetchableResource> resources)
public static void prefetch(PrefetchableResource resource)
prefetch(Iterable) with a single resource.public static void start()
public static void stop()