Uses of Class
org.dataloader.DataLoader
Packages that use DataLoader
-
Uses of DataLoader in org.dataloader
Fields in org.dataloader with type parameters of type DataLoaderModifier and TypeFieldDescriptionprotected final Map<String, DataLoader<?, ?>> DataLoaderRegistry.dataLoadersMethods 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 keystatic <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.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newDataLoader(BatchLoaderWithContext<K, V> batchLoadFunction) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newDataLoader(BatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <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.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newDataLoaderWithTry(BatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <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 ofTryobjects.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 ofTryobjects.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 ofTryobjects.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 ofTryobjects.static <K,V> DataLoader <K, V> DataLoader.newMappedDataLoader(MappedBatchLoader<K, V> batchLoadFunction) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoader(MappedBatchLoader<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K, V> batchLoadFunction) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K, V> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <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.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry(MappedBatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactoryinsteadstatic <K,V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactoryinsteadstatic <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 ofTryobjects.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 ofTryobjects.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 ofTryobjects.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 ofTryobjects.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. -
Uses of DataLoader in org.dataloader.registries
Methods in org.dataloader.registries with parameters of type DataLoaderModifier and TypeMethodDescriptionScheduledDataLoaderRegistry.Builder.register(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderbooleanDispatchPredicate.test(String dataLoaderKey, DataLoader<?, ?> dataLoader) This predicate tests whether the data loader should be dispatched or not.
DataLoaderFactoryinstead