Package | Description |
---|---|
org.dataloader |
Modifier and Type | Method and Description |
---|---|
DataLoader<K,V> |
DataLoader.clear(K key)
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.clearAll()
Clears the entire cache map of the loader.
|
<K,V> DataLoader<K,V> |
DataLoaderRegistry.getDataLoader(String key)
Returns the dataloader that was registered under the specified key
|
static <K,V> DataLoader<K,V> |
DataLoader.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> |
DataLoader.newDataLoader(BatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.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> |
DataLoader.newDataLoader(BatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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> |
DataLoader.newMappedDataLoader(MappedBatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.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> |
DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates new DataLoader with the specified batch loader function with the provided options
|
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
static <K,V> DataLoader<K,V> |
DataLoader.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 of
Try objects. |
DataLoader<K,V> |
DataLoader.prime(K key,
Exception error)
Primes the cache with the given key and error.
|
DataLoader<K,V> |
DataLoader.prime(K key,
V value)
Primes the cache with the given key and value.
|
Modifier and Type | Method and Description |
---|---|
List<DataLoader<?,?>> |
DataLoaderRegistry.getDataLoaders() |
Modifier and Type | Method and Description |
---|---|
DataLoaderRegistry |
DataLoaderRegistry.register(String key,
DataLoader<?,?> dataLoader)
This will register a new dataloader
|
Copyright © 2019. All rights reserved.