- CacheKey<K> - Interface in org.dataloader
-
Function that is invoked on input keys of type
K
to derive keys that are required by the
CacheMap
implementation.
- cacheKeyFunction() - Method in class org.dataloader.DataLoaderOptions
-
Gets an (optional) function to invoke for creation of the cache key, if caching is enabled.
- CacheMap<U,V> - Interface in org.dataloader
-
Cache map interface for data loaders that use caching.
- cacheMap() - Method in class org.dataloader.DataLoaderOptions
-
Gets the (optional) cache map implementation that is used for caching, if caching is enabled.
- cachingEnabled() - Method in class org.dataloader.DataLoaderOptions
-
Option that determines whether to use caching of futures (the default), or not.
- cause(CompletableFuture) - Static method in class org.dataloader.impl.CompletableFutureKit
-
- cause() - Method in interface org.dataloader.impl.PromisedValues
-
The exception cause or null if it didn't fail
- cause(int) - Method in interface org.dataloader.impl.PromisedValues
-
The exception cause at the specified index or null if it didn't fail
- cause() - Method in class org.dataloader.impl.PromisedValuesImpl
-
- cause(int) - Method in class org.dataloader.impl.PromisedValuesImpl
-
- clear() - Method in interface org.dataloader.CacheMap
-
Clears all entries of the cache map
- clear(K) - Method in class org.dataloader.DataLoader
-
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.
- clear() - Method in class org.dataloader.impl.DefaultCacheMap
-
Clears all entries of the cache map
- clearAll() - Method in class org.dataloader.DataLoader
-
Clears the entire cache map of the loader.
- combine(DataLoaderRegistry) - Method in class org.dataloader.DataLoaderRegistry
-
This will combine all the current data loaders in this registry and all the data loaders from the specified registry
and return a new combined registry
- combine(Statistics) - Method in class org.dataloader.stats.Statistics
-
This will combine this set of statistics with another set of statistics so that they become the combined count of each
- combineAllOf(List<? extends CompletionStage<T>>) - Static method in class org.dataloader.impl.PromisedValuesImpl
-
- combinePromisedValues(List<PromisedValues<T>>) - Static method in class org.dataloader.impl.PromisedValuesImpl
-
- CompletableFutureKit - Class in org.dataloader.impl
-
Some really basic helpers when working with CompletableFutures
- CompletableFutureKit() - Constructor for class org.dataloader.impl.CompletableFutureKit
-
- containsKey(U) - Method in interface org.dataloader.CacheMap
-
Checks whether the specified key is contained in the cach map.
- containsKey(U) - Method in class org.dataloader.impl.DefaultCacheMap
-
Checks whether the specified key is contained in the cach map.
- context(Object) - Method in class org.dataloader.BatchLoaderEnvironment.Builder
-
- set(U, V) - Method in interface org.dataloader.CacheMap
-
Creates a new cache map entry with the specified key and value, or updates the value if the key already exists.
- set(U, V) - Method in class org.dataloader.impl.DefaultCacheMap
-
Creates a new cache map entry with the specified key and value, or updates the value if the key already exists.
- setBatchingEnabled(boolean) - Method in class org.dataloader.DataLoaderOptions
-
Sets the option that determines whether batch loading is enabled.
- setBatchLoaderContextProvider(BatchLoaderContextProvider) - Method in class org.dataloader.DataLoaderOptions
-
Sets the batch loader environment provider that will be used to give context to batch load functions
- setCacheKeyFunction(CacheKey) - Method in class org.dataloader.DataLoaderOptions
-
Sets the function to use for creating the cache key, if caching is enabled.
- setCacheMap(CacheMap) - Method in class org.dataloader.DataLoaderOptions
-
Sets the cache map implementation to use for caching, if caching is enabled.
- setCachingEnabled(boolean) - Method in class org.dataloader.DataLoaderOptions
-
Sets the option that determines whether caching is enabled.
- setMaxBatchSize(int) - Method in class org.dataloader.DataLoaderOptions
-
Sets the maximum number of keys that will be presented to the
BatchLoader
function
before they are split into multiple class
- setStatisticsCollector(Supplier<StatisticsCollector>) - Method in class org.dataloader.DataLoaderOptions
-
Sets the statistics collector supplier that will be used with these data loader options.
- simpleMap() - Static method in interface org.dataloader.CacheMap
-
Creates a new cache map, using the default implementation that is based on a LinkedHashMap
.
- SimpleStatisticsCollector - Class in org.dataloader.stats
-
This simple collector uses AtomicLong
s to collect
statistics
- SimpleStatisticsCollector() - Constructor for class org.dataloader.stats.SimpleStatisticsCollector
-
- size() - Method in interface org.dataloader.impl.PromisedValues
-
- size() - Method in class org.dataloader.impl.PromisedValuesImpl
-
- Statistics - Class in org.dataloader.stats
-
This holds statistics on how a
DataLoader
has performed
- Statistics() - Constructor for class org.dataloader.stats.Statistics
-
Zero statistics
- Statistics(long, long, long, long, long, long) - Constructor for class org.dataloader.stats.Statistics
-
- StatisticsCollector - Interface in org.dataloader.stats
-
This allows statistics to be collected for
DataLoader
operations
- succeeded(CompletableFuture) - Static method in class org.dataloader.impl.CompletableFutureKit
-
- succeeded() - Method in interface org.dataloader.impl.PromisedValues
-
- succeeded(int) - Method in interface org.dataloader.impl.PromisedValues
-
The true if the CompletionStage
at the specified index succeeded
- succeeded() - Method in class org.dataloader.impl.PromisedValuesImpl
-
- succeeded(int) - Method in class org.dataloader.impl.PromisedValuesImpl
-
- succeeded(V) - Static method in class org.dataloader.Try
-
Creates a Try that has succeeded with the provided value