public class SocialResourcePrefetch
extends java.lang.Object
Constructor and Description |
---|
SocialResourcePrefetch() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
call(SocialResourceProvider.PrefetchPerResult prefetch,
java.util.concurrent.Callable<T> call)
Add a PrefetchPerChild specification to the thread's prefetch stack and invoke code which will use that
prefetch specification implictly.
|
static void |
call(SocialResourceProvider.PrefetchPerResult prefetch,
java.lang.Runnable runnable)
Add a PrefetchPerChild specification to the thread's prefetch stack and invoke code which will use that
prefetch specification implictly.
|
static java.util.Iterator<SocialResourceProvider.PrefetchPerResult> |
getPrefetches()
Get all the prefetch specifications (PrefetchPerChild) in effect.
|
public static <T> T call(SocialResourceProvider.PrefetchPerResult prefetch, java.util.concurrent.Callable<T> call) throws java.lang.reflect.InvocationTargetException
T
- Typecall
- The code to run with the specified prefetchingprefetch
- the specification of what to prefetch.java.lang.reflect.InvocationTargetException
- if the called code throws any exception.public static void call(SocialResourceProvider.PrefetchPerResult prefetch, java.lang.Runnable runnable) throws java.lang.reflect.InvocationTargetException
prefetch
- the specification of what to prefetch.runnable
- The code to run with the specified prefetchingjava.lang.reflect.InvocationTargetException
- if the called code throws any exception.public static java.util.Iterator<SocialResourceProvider.PrefetchPerResult> getPrefetches()
Copyright © 2010 - 2020 Adobe. All Rights Reserved