Package | Description |
---|---|
org.dataloader |
Modifier and Type | Method and Description |
---|---|
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.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. |
Constructor and Description |
---|
DataLoader(BatchLoader<K,V> batchLoadFunction)
Creates a new data loader with the provided batch load function, and default options.
|
DataLoader(BatchLoader<K,V> batchLoadFunction,
DataLoaderOptions options)
Creates a new data loader with the provided batch load function and options.
|
Copyright © 2017–2021. All rights reserved.