- 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<K,V> - Interface in org.dataloader
-
CacheMap is used by data loaders that use caching promises to values aka CompletableFuture
<V>.
- 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.
- cachingExceptionsEnabled() - Method in class org.dataloader.DataLoaderOptions
-
Option that determines whether to cache exceptional values (the default), or not.
- cause(CompletableFuture<V>) - 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(K, BiConsumer<Void, Throwable>) - Method in class org.dataloader.DataLoader
-
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.
- clear() - Method in class org.dataloader.impl.DefaultCacheMap
-
Clears all entries of the cache map
- clear() - Method in class org.dataloader.impl.NoOpValueCache
-
Clears all entries from the value cache.
- clear() - Method in interface org.dataloader.ValueCache
-
Clears all entries from the value cache.
- clearAll() - Method in class org.dataloader.DataLoader
-
Clears the entire cache map of the loader.
- clearAll(BiConsumer<Void, Throwable>) - Method in class org.dataloader.DataLoader
-
Clears the entire cache map of the loader, and of the cached value store.
- close() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
Once closed this registry will never again reschedule checks
- 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(DataLoaderRegistry) - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
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
-
- computeIfAbsent(String, Function<String, DataLoader<?, ?>>) - Method in class org.dataloader.DataLoaderRegistry
-
Computes a data loader if absent or return it if it was
already registered at that key.
- containsKey(K) - Method in interface org.dataloader.CacheMap
-
Checks whether the specified key is contained in the cache map.
- containsKey(K) - Method in class org.dataloader.impl.DefaultCacheMap
-
Checks whether the specified key is contained in the cache map.
- context(Object) - Method in class org.dataloader.BatchLoaderEnvironment.Builder
-
- DataLoader<K,V> - Class in org.dataloader
-
Data loader is a utility class that allows batch loading of data that is identified by a set of unique keys.
- DataLoader(BatchLoader<K, V>) - Constructor for class org.dataloader.DataLoader
-
- DataLoader(BatchLoader<K, V>, DataLoaderOptions) - Constructor for class org.dataloader.DataLoader
-
- DataLoaderAssertionException - Exception in org.dataloader.impl
-
- DataLoaderAssertionException(String) - Constructor for exception org.dataloader.impl.DataLoaderAssertionException
-
- DataLoaderFactory - Class in org.dataloader
-
- DataLoaderFactory() - Constructor for class org.dataloader.DataLoaderFactory
-
- DataLoaderOptions - Class in org.dataloader
-
- DataLoaderOptions() - Constructor for class org.dataloader.DataLoaderOptions
-
Creates a new data loader options with default settings.
- DataLoaderOptions(DataLoaderOptions) - Constructor for class org.dataloader.DataLoaderOptions
-
Clones the provided data loader options.
- DataLoaderRegistry - Class in org.dataloader
-
This allows data loaders to be registered together into a single place, so
they can be dispatched as one.
- DataLoaderRegistry() - Constructor for class org.dataloader.DataLoaderRegistry
-
- DataLoaderRegistry.Builder - Class in org.dataloader
-
- dataLoaders - Variable in class org.dataloader.DataLoaderRegistry
-
- DefaultCacheMap<K,V> - Class in org.dataloader.impl
-
Default implementation of
CacheMap
that is based on a regular
HashMap
.
- DefaultCacheMap() - Constructor for class org.dataloader.impl.DefaultCacheMap
-
Default constructor
- defaultValueCache() - Static method in interface org.dataloader.ValueCache
-
Creates a new value cache, using the default no-op implementation.
- DelegatingStatisticsCollector - Class in org.dataloader.stats
-
This statistics collector keeps dataloader statistics AND also calls the delegate
collector at the same time.
- DelegatingStatisticsCollector(StatisticsCollector) - Constructor for class org.dataloader.stats.DelegatingStatisticsCollector
-
- delete(K) - Method in interface org.dataloader.CacheMap
-
Deletes the entry with the specified key from the cache map, if it exists.
- delete(K) - Method in class org.dataloader.impl.DefaultCacheMap
-
Deletes the entry with the specified key from the cache map, if it exists.
- delete(K) - Method in class org.dataloader.impl.NoOpValueCache
-
Deletes the entry with the specified key from the value cache, if it exists.
- delete(K) - Method in interface org.dataloader.ValueCache
-
Deletes the entry with the specified key from the value cache, if it exists.
- dispatch() - Method in class org.dataloader.DataLoader
-
Dispatches the queued load requests to the batch execution function and returns a promise of the result.
- DISPATCH_ALWAYS - Static variable in interface org.dataloader.registries.DispatchPredicate
-
A predicate that always returns true
- DISPATCH_NEVER - Static variable in interface org.dataloader.registries.DispatchPredicate
-
A predicate that always returns false
- dispatchAll() - Method in class org.dataloader.DataLoaderRegistry
-
- dispatchAll() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- dispatchAllImmediately() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
This will immediately dispatch the
DataLoader
s in the registry
without testing the predicates
- dispatchAllWithCount() - Method in class org.dataloader.DataLoaderRegistry
-
- dispatchAllWithCount() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- dispatchAllWithCountImmediately() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
This will immediately dispatch the
DataLoader
s in the registry
without testing the predicates
- dispatchAndJoin() - Method in class org.dataloader.DataLoader
-
Normally
DataLoader.dispatch()
is an asynchronous operation but this version will 'join' on the
results if dispatch and wait for them to complete.
- dispatchDepth() - Method in class org.dataloader.DataLoader
-
- dispatchDepth() - Method in class org.dataloader.DataLoaderRegistry
-
- dispatchIfDepthGreaterThan(int) - Static method in interface org.dataloader.registries.DispatchPredicate
-
- dispatchIfLongerThan(Duration) - Static method in interface org.dataloader.registries.DispatchPredicate
-
This predicate will return true if the
DataLoader
has not been dispatched
for at least the duration length of time.
- DispatchPredicate - Interface in org.dataloader.registries
-
- dispatchPredicate(DispatchPredicate) - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry.Builder
-
- DispatchResult<T> - Class in org.dataloader
-
- DispatchResult(CompletableFuture<List<T>>, int) - Constructor for class org.dataloader.DispatchResult
-
- dispatchWithCounts() - Method in class org.dataloader.DataLoader
-
Dispatches the queued load requests to the batch execution function and returns both the promise of the result
and the number of entries that were dispatched.
- get() - Method in interface org.dataloader.BatchLoaderEnvironmentProvider
-
- get(K) - Method in interface org.dataloader.CacheMap
-
Gets the specified key from the cache map.
- get(K) - Method in class org.dataloader.impl.DefaultCacheMap
-
Gets the specified key from the cache map.
- get(K) - Method in class org.dataloader.impl.NoOpValueCache
-
Gets the specified key from the value cache.
- get(int) - Method in interface org.dataloader.impl.PromisedValues
-
The value at index or null if it failed
- get(int) - Method in class org.dataloader.impl.PromisedValuesImpl
-
- get() - Method in class org.dataloader.Try
-
- get(K) - Method in interface org.dataloader.ValueCache
-
Gets the specified key from the value cache.
- getAll() - Method in interface org.dataloader.CacheMap
-
Gets a collection of CompletableFutures from the cache map.
- getAll() - Method in class org.dataloader.impl.DefaultCacheMap
-
Gets a collection of CompletableFutures from the cache map.
- getBatchInvokeCount() - Method in class org.dataloader.stats.Statistics
-
- getBatchLoadCount() - Method in class org.dataloader.stats.Statistics
-
- getBatchLoaderContextProvider() - Method in class org.dataloader.DataLoaderOptions
-
- getBatchLoaderScheduler() - Method in class org.dataloader.DataLoaderOptions
-
- getBatchLoadExceptionCount() - Method in class org.dataloader.stats.Statistics
-
- getBatchLoadExceptionRatio() - Method in class org.dataloader.stats.Statistics
-
- getBatchLoadRatio() - Method in class org.dataloader.stats.Statistics
-
- getCacheHitCount() - Method in class org.dataloader.stats.Statistics
-
- getCacheHitRatio() - Method in class org.dataloader.stats.Statistics
-
- getCacheKey(K) - Method in class org.dataloader.DataLoader
-
Gets the object that is used in the internal cache map as key, by applying the cache key function to
the provided key.
- getCacheMap() - Method in class org.dataloader.DataLoader
-
- getCacheMissCount() - Method in class org.dataloader.stats.Statistics
-
- getCallContext() - Method in class org.dataloader.stats.context.IncrementCacheHitCountStatisticsContext
-
- getCallContext() - Method in class org.dataloader.stats.context.IncrementLoadCountStatisticsContext
-
- getCallContext() - Method in class org.dataloader.stats.context.IncrementLoadErrorCountStatisticsContext
-
- getCallContexts() - Method in class org.dataloader.stats.context.IncrementBatchLoadCountByStatisticsContext
-
- getCallContexts() - Method in class org.dataloader.stats.context.IncrementBatchLoadExceptionCountStatisticsContext
-
- getContext() - Method in interface org.dataloader.BatchLoaderContextProvider
-
- getContext() - Method in class org.dataloader.BatchLoaderEnvironment
-
- getDataLoader(String) - Method in class org.dataloader.DataLoaderRegistry
-
Returns the dataloader that was registered under the specified key
- getDataLoaderPredicates() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- getDataLoaders() - Method in class org.dataloader.DataLoaderRegistry
-
- getDataLoadersMap() - Method in class org.dataloader.DataLoaderRegistry
-
- getDelegateStatistics() - Method in class org.dataloader.stats.DelegatingStatisticsCollector
-
- getDispatchPredicate() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- getIfCompleted(K) - Method in class org.dataloader.DataLoader
-
This will return an optional promise to a value previously loaded via a
DataLoader.load(Object)
call that has in fact been completed or empty
if no call has been made for that key or the promise has not completed yet.
- getIfPresent(K) - Method in class org.dataloader.DataLoader
-
This will return an optional promise to a value previously loaded via a
DataLoader.load(Object)
call or empty if not call has been made for that key.
- getKey(K) - Method in interface org.dataloader.CacheKey
-
Returns the cache key that is created from the provided input key.
- getKey() - Method in class org.dataloader.stats.context.IncrementCacheHitCountStatisticsContext
-
- getKey() - Method in class org.dataloader.stats.context.IncrementLoadCountStatisticsContext
-
- getKey() - Method in class org.dataloader.stats.context.IncrementLoadErrorCountStatisticsContext
-
- getKeyContexts() - Method in class org.dataloader.BatchLoaderEnvironment
-
- getKeyContextsList() - Method in class org.dataloader.BatchLoaderEnvironment
-
- getKeys() - Method in class org.dataloader.DataLoaderRegistry
-
- getKeys() - Method in class org.dataloader.stats.context.IncrementBatchLoadCountByStatisticsContext
-
- getKeys() - Method in class org.dataloader.stats.context.IncrementBatchLoadExceptionCountStatisticsContext
-
- getKeysCount() - Method in class org.dataloader.DispatchResult
-
- getKeyWithContext(K, Object) - Method in interface org.dataloader.CacheKey
-
Returns the cache key that is created from the provided input key and context.
- getLastDispatchTime() - Method in class org.dataloader.DataLoader
-
This returns the last instant the data loader was dispatched.
- getLoadCount() - Method in class org.dataloader.stats.Statistics
-
- getLoadErrorCount() - Method in class org.dataloader.stats.Statistics
-
- getLoadErrorRatio() - Method in class org.dataloader.stats.Statistics
-
- getOverallStatistics() - Method in class org.dataloader.stats.ThreadLocalStatisticsCollector
-
This returns the overall statistics, that is not per thread but for the life of this object
- getPromisedResults() - Method in class org.dataloader.DispatchResult
-
- getScheduledExecutorService() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- getScheduleDuration() - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
- getStatistics() - Method in class org.dataloader.DataLoader
-
Gets the statistics associated with this data loader.
- getStatistics() - Method in class org.dataloader.DataLoaderRegistry
-
- getStatistics() - Method in class org.dataloader.stats.DelegatingStatisticsCollector
-
- getStatistics() - Method in class org.dataloader.stats.NoOpStatisticsCollector
-
- getStatistics() - Method in class org.dataloader.stats.SimpleStatisticsCollector
-
- getStatistics() - Method in interface org.dataloader.stats.StatisticsCollector
-
- getStatistics() - Method in class org.dataloader.stats.ThreadLocalStatisticsCollector
-
This returns the statistics for this thread.
- getStatisticsCollector() - Method in class org.dataloader.DataLoaderOptions
-
- getThrowable() - Method in class org.dataloader.Try
-
- getTimeSinceDispatch() - Method in class org.dataloader.DataLoader
-
This returns the Duration
since the data loader was dispatched.
- getValueCache() - Method in class org.dataloader.DataLoader
-
- getValueCacheOptions() - Method in class org.dataloader.DataLoaderOptions
-
- getValues(List<K>) - Method in class org.dataloader.impl.NoOpValueCache
-
- getValues(List<K>) - Method in interface org.dataloader.ValueCache
-
Gets the specified keys from the value cache, in a batch call.
- GuardedBy - Annotation Type in org.dataloader.annotations
-
Indicates that the annotated element should be used only while holding the specified lock.
- negate() - Method in interface org.dataloader.registries.DispatchPredicate
-
Returns a predicate that represents the logical negation of this
predicate.
- newBatchLoaderEnvironment() - Static method in class org.dataloader.BatchLoaderEnvironment
-
- newDataLoader(BatchLoader<K, V>) - Static method in class org.dataloader.DataLoader
-
- newDataLoader(BatchLoader<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newDataLoader(BatchLoaderWithContext<K, V>) - Static method in class org.dataloader.DataLoader
-
- newDataLoader(BatchLoaderWithContext<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newDataLoader(BatchLoader<K, V>) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function and default options
(batching, caching and unlimited batch size).
- newDataLoader(BatchLoader<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function with the provided options
- newDataLoader(BatchLoaderWithContext<K, V>) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function and default options
(batching, caching and unlimited batch size).
- newDataLoader(BatchLoaderWithContext<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function with the provided options
- newDataLoaderWithTry(BatchLoader<K, Try<V>>) - Static method in class org.dataloader.DataLoader
-
- newDataLoaderWithTry(BatchLoader<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>>) - Static method in class org.dataloader.DataLoader
-
- newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newDataLoaderWithTry(BatchLoader<K, Try<V>>) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newDataLoaderWithTry(BatchLoader<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>>) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newDataLoaderWithTry(BatchLoaderWithContext<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newMappedDataLoader(MappedBatchLoader<K, V>) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoader(MappedBatchLoader<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoader(MappedBatchLoaderWithContext<K, V>) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoader(MappedBatchLoaderWithContext<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoader(MappedBatchLoader<K, V>) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function and default options
(batching, caching and unlimited batch size).
- newMappedDataLoader(MappedBatchLoader<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function with the provided options
- newMappedDataLoader(MappedBatchLoaderWithContext<K, V>) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified mapped batch loader function and default options
(batching, caching and unlimited batch size).
- newMappedDataLoader(MappedBatchLoaderWithContext<K, V>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
Creates new DataLoader with the specified batch loader function with the provided options
- newMappedDataLoaderWithTry(MappedBatchLoader<K, Try<V>>) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoaderWithTry(MappedBatchLoader<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>>) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoader
-
- newMappedDataLoaderWithTry(MappedBatchLoader<K, Try<V>>) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newMappedDataLoaderWithTry(MappedBatchLoader<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>>) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newMappedDataLoaderWithTry(MappedBatchLoaderWithContext<K, Try<V>>, DataLoaderOptions) - Static method in class org.dataloader.DataLoaderFactory
-
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.
- newOptions() - Static method in class org.dataloader.DataLoaderOptions
-
- newOptions() - Static method in class org.dataloader.ValueCacheOptions
-
- newRegistry() - Static method in class org.dataloader.DataLoaderRegistry
-
- newScheduledRegistry() - Static method in class org.dataloader.registries.ScheduledDataLoaderRegistry
-
By default, this will create use a Executors.newSingleThreadScheduledExecutor()
and a schedule duration of 10 milliseconds.
- nonNull(T) - Static method in class org.dataloader.impl.Assertions
-
- nonNull(T, Supplier<String>) - Static method in class org.dataloader.impl.Assertions
-
- NOOP - Static variable in class org.dataloader.impl.NoOpValueCache
-
a no op value cache instance
- NoOpStatisticsCollector - Class in org.dataloader.stats
-
A statistics collector that does nothing
- NoOpStatisticsCollector() - Constructor for class org.dataloader.stats.NoOpStatisticsCollector
-
- NoOpValueCache<K,V> - Class in org.dataloader.impl
-
- NoOpValueCache() - Constructor for class org.dataloader.impl.NoOpValueCache
-
- schedule(Duration) - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry.Builder
-
- scheduleBatchLoader(BatchLoaderScheduler.ScheduledBatchLoaderCall<V>, List<K>, BatchLoaderEnvironment) - Method in interface org.dataloader.scheduler.BatchLoaderScheduler
-
- ScheduledDataLoaderRegistry - Class in org.dataloader.registries
-
- ScheduledDataLoaderRegistry.Builder - Class in org.dataloader.registries
-
- scheduledExecutorService(ScheduledExecutorService) - Method in class org.dataloader.registries.ScheduledDataLoaderRegistry.Builder
-
- scheduleMappedBatchLoader(BatchLoaderScheduler.ScheduledMappedBatchLoaderCall<K, V>, List<K>, BatchLoaderEnvironment) - Method in interface org.dataloader.scheduler.BatchLoaderScheduler
-
- set(K, CompletableFuture<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(K, CompletableFuture<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.
- set(K, V) - Method in class org.dataloader.impl.NoOpValueCache
-
Stores the value with the specified key, or updates it if the key already exists.
- set(K, V) - Method in interface org.dataloader.ValueCache
-
Stores the value with the specified key, or updates it 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
- setBatchLoaderScheduler(BatchLoaderScheduler) - Method in class org.dataloader.DataLoaderOptions
-
- 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.
- setCachingExceptionsEnabled(boolean) - Method in class org.dataloader.DataLoaderOptions
-
Sets the option that determines whether exceptional values are cache enabled.
- setCompleteValueAfterCacheSet(boolean) - Method in class org.dataloader.ValueCacheOptions
-
- 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.
- setValueCache(ValueCache<?, ?>) - Method in class org.dataloader.DataLoaderOptions
-
Sets the value cache implementation to use for caching values, if caching is enabled.
- setValueCacheOptions(ValueCacheOptions) - Method in class org.dataloader.DataLoaderOptions
-
- setValues(List<K>, List<V>) - Method in class org.dataloader.impl.NoOpValueCache
-
- setValues(List<K>, List<V>) - Method in interface org.dataloader.ValueCache
-
Stores the value with the specified keys, or updates it if the keys if they already exist.
- 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<V>) - 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