Package org.dataloader
-
Interface Summary Interface Description BatchLoader<K,V> A function that is invoked for batch loading a list of data values indicated by the provided list of keys.BatchLoaderContextProvider A BatchLoaderContextProvider is used by theDataLoadercode to provide overall calling context to theBatchLoadercall.BatchLoaderEnvironmentProvider A BatchLoaderEnvironmentProvider is used by theDataLoadercode to provideBatchLoaderEnvironmentcalling context to theBatchLoadercall.BatchLoaderWithContext<K,V> This form ofBatchLoaderis given aBatchLoaderEnvironmentobject that encapsulates the calling context.BatchPublisher<K,V> A function that is invoked for batch loading a stream of data values indicated by the provided list of keys.BatchPublisherWithContext<K,V> This form ofBatchPublisheris given aBatchLoaderEnvironmentobject that encapsulates the calling context.CacheKey<K> Function that is invoked on input keys of typeKto derive keys that are required by theCacheMapimplementation.CacheMap<K,V> CacheMap is used by data loaders that use caching promises to values akaCompletableFuture<V>.MappedBatchLoader<K,V> A function that is invoked for batch loading a map of data values indicated by the provided set of keys.MappedBatchLoaderWithContext<K,V> This form ofMappedBatchLoaderis given aBatchLoaderEnvironmentobject that encapsulates the calling context.MappedBatchPublisher<K,V> A function that is invoked for batch loading a stream of data values indicated by the provided list of keys.MappedBatchPublisherWithContext<K,V> This form ofMappedBatchPublisheris given aBatchLoaderEnvironmentobject that encapsulates the calling context.ValueCache<K,V> TheValueCacheis used by data loaders that use caching and want a long-lived or external cache of values. -
Class Summary Class Description BatchLoaderEnvironment This object is passed to a batch loader as calling context.BatchLoaderEnvironment.Builder DataLoader<K,V> Data loader is a utility class that allows batch loading of data that is identified by a set of unique keys.DataLoaderFactory A factory class to createDataLoadersDataLoaderOptions Configuration options forDataLoaderinstances.DataLoaderRegistry This allows data loaders to be registered together into a single place, so they can be dispatched as one.DataLoaderRegistry.Builder DispatchResult<T> When a DataLoader is dispatched this object holds the promised results and also the count of key asked for via methods likeDataLoader.load(Object)orDataLoader.loadMany(java.util.List)Try<V> Try is class that allows you to hold the result of computation or the throwable it produced.ValueCacheOptions Options that control how theValueCacheis used byDataLoader -
Exception Summary Exception Description ValueCache.ValueCachingNotSupported This special exception can be used to short-circuit a caching method