Uses of Class
org.dataloader.DataLoader
Packages that use DataLoader
-
Uses of DataLoader in org.dataloader
Fields in org.dataloader declared as DataLoaderFields in org.dataloader with type parameters of type DataLoaderModifier and TypeFieldDescriptionprivate final Map
<String, DataLoader<?, ?>> DataLoaderRegistry.Builder.dataLoaders
protected final Map
<String, DataLoader<?, ?>> DataLoaderRegistry.dataLoaders
Methods in org.dataloader that return DataLoaderModifier and TypeMethodDescriptionDataLoader
<K, V> Clears the future with the specified key from the cache, if caching is enabled, so it will be re-fetched on the next load request.DataLoader
<K, V> DataLoader.clear
(K key, BiConsumer<Void, Throwable> handler) Clears the future with the specified key from the cache remote value store, if caching is enabled and a remote store is set, so it will be re-fetched and stored on the next load request.DataLoader
<K, V> DataLoader.clearAll()
Clears the entire cache map of the loader.DataLoader
<K, V> DataLoader.clearAll
(BiConsumer<Void, Throwable> handler) Clears the entire cache map of the loader, and of the cached value store.<K,
V> DataLoader <K, V> DataLoaderRegistry.computeIfAbsent
(String key, Function<String, DataLoader<?, ?>> mappingFunction) Computes a data loader if absent or return it if it was already registered at that key.<K,
V> DataLoader <K, V> DataLoaderRegistry.getDataLoader
(String key) Returns the dataloader that was registered under the specified key(package private) static <K,
V> DataLoader <K, V> DataLoaderFactory.mkDataLoader
(Object batchLoadFunction, DataLoaderOptions options) static <K,
V> DataLoader <K, V> DataLoader.newDataLoader
(BatchLoader<K, V> batchLoadFunction) Deprecated.static <K,
V> DataLoader <K, V> DataLoader.newDataLoader
(BatchLoader<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoader
(BatchLoaderWithContext<K, V> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoader
(BatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoader
(BatchLoader<K, V> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size).static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoader
(BatchLoader<K, V> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function with the provided optionsstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoader
(BatchLoaderWithContext<K, V> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size).static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoader
(BatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function with the provided optionsstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoader
(MappedBatchLoader<K, V> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoader
(MappedBatchLoader<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoader
(MappedBatchLoaderWithContext<K, V> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoader
(MappedBatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoader
(MappedBatchLoader<K, V> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size).static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoader
(MappedBatchLoader<K, V> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function with the provided optionsstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoader
(MappedBatchLoaderWithContext<K, V> batchLoadFunction) Creates new DataLoader with the specified mapped batch loader function and default options (batching, caching and unlimited batch size).static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoader
(MappedBatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function with the provided optionsstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.DataLoader
<K, V> Primes the cache with the given key and error.DataLoader
<K, V> DataLoader.prime
(K key, CompletableFuture<V> value) Primes the cache with the given key and value.DataLoader
<K, V> Primes the cache with the given key and value.Methods in org.dataloader that return types with arguments of type DataLoaderModifier and TypeMethodDescriptionList
<DataLoader<?, ?>> DataLoaderRegistry.getDataLoaders()
Map
<String, DataLoader<?, ?>> DataLoaderRegistry.getDataLoadersMap()
Methods in org.dataloader with parameters of type DataLoaderModifier and TypeMethodDescriptionDataLoaderRegistry.Builder.register
(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderDataLoaderRegistry.register
(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderMethod parameters in org.dataloader with type arguments of type DataLoaderModifier and TypeMethodDescription<K,
V> DataLoader <K, V> DataLoaderRegistry.computeIfAbsent
(String key, Function<String, DataLoader<?, ?>> mappingFunction) Computes a data loader if absent or return it if it was already registered at that key.Constructors in org.dataloader with parameters of type DataLoaderModifierConstructorDescription(package private)
DataLoaderHelper
(DataLoader<K, V> dataLoader, Object batchLoadFunction, DataLoaderOptions loaderOptions, CacheMap<Object, V> futureCache, ValueCache<K, V> valueCache, StatisticsCollector stats, Clock clock) -
Uses of DataLoader in org.dataloader.registries
Fields in org.dataloader.registries with type parameters of type DataLoaderModifier and TypeFieldDescriptionprivate final Map
<String, DataLoader<?, ?>> ScheduledDataLoaderRegistry.Builder.dataLoaders
Methods in org.dataloader.registries with parameters of type DataLoaderModifier and TypeMethodDescriptionprivate void
ScheduledDataLoaderRegistry.dispatchOrReschedule
(String key, DataLoader<?, ?> dataLoader) ScheduledDataLoaderRegistry.Builder.register
(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderprivate void
ScheduledDataLoaderRegistry.reschedule
(String key, DataLoader<?, ?> dataLoader) boolean
DispatchPredicate.test
(String dataLoaderKey, DataLoader<?, ?> dataLoader) This predicate tests whether the data loader should be dispatched or not.
DataLoaderFactory
instead