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.clear(K key,
java.util.function.BiConsumer<java.lang.Void,java.lang.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(java.util.function.BiConsumer<java.lang.Void,java.lang.Throwable> handler) |
Clears the entire cache map of the loader, and of the cached value store.
|
<K,V> DataLoader<K,V> |
DataLoaderRegistry.computeIfAbsent(java.lang.String key,
java.util.function.Function<java.lang.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(java.lang.String key) |
Returns the dataloader that was registered under the specified key
|
(package private) static <K,V> DataLoader<K,V> |
DataLoaderFactory.mkDataLoader(java.lang.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.
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoader(BatchLoaderWithContext<K,V> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoader(BatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <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 options
|
static <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 options
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoader<K,Try<V>> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoader<K,Try<V>> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoaderWithContext<K,Try<V>> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newDataLoaderWithTry(BatchLoaderWithContext<K,Try<V>> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <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 of
Try 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 of
Try 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 of
Try 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 of
Try objects.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoader<K,V> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K,V> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoader(MappedBatchLoaderWithContext<K,V> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <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 options
|
static <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 options
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoader<K,Try<V>> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoader<K,Try<V>> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K,Try<V>> batchLoadFunction) |
Deprecated.
|
static <K,V> DataLoader<K,V> |
DataLoader.newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K,Try<V>> batchLoadFunction,
DataLoaderOptions options) |
Deprecated.
|
static <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 of
Try 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 of
Try 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 of
Try 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 of
Try objects.
|
DataLoader<K,V> |
DataLoader.prime(K key,
java.lang.Exception error) |
Primes the cache with the given key and error.
|
DataLoader<K,V> |
DataLoader.prime(K key,
java.util.concurrent.CompletableFuture<V> value) |
Primes the cache with the given key and value.
|
DataLoader<K,V> |
DataLoader.prime(K key,
V value) |
Primes the cache with the given key and value.
|