public class CacheFactory extends Object
LoadingCaches.| Constructor and Description |
|---|
CacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> com.google.common.cache.LoadingCache<K,V> |
loadingCache(RemoteFunction<K,V> loader)
|
static <Params,Result> |
loadingPathwayCache(RemoteFunction<Params,Result[]> loader,
BiPredicate<Params,Result> filter,
Function<Result,Pathway> pathwayTransformer)
Creates a
LoadingCache for Pathways |
public static <K,V> com.google.common.cache.LoadingCache<K,V> loadingCache(RemoteFunction<K,V> loader)
loader - RemoteFunction that loads a value for the cacheLoadingCachepublic static <Params,Result> com.google.common.cache.LoadingCache<Params,Set<Pathway>> loadingPathwayCache(RemoteFunction<Params,Result[]> loader, BiPredicate<Params,Result> filter, Function<Result,Pathway> pathwayTransformer)
LoadingCache for Pathwaysloader - RemoteFunction that loads the pathwaysfilter - BiPredicate to filter the loaded pathwayspathwayTransformer - Function that transforms the loaded pathways to PathwaysList containing the filtered and transformed PathwaysCopyright © 2017. All rights reserved.