Skip navigation links
A B C D F G I J L M N O P S T 

A

allOf(List<CompletableFuture<T>>) - Static method in class org.dataloader.impl.CompletableFutureKit
 
allOf(List<CompletionStage<T>>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given CompletionStages complete.
allOf(CompletionStage<T>, CompletionStage<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given CompletionStages complete.
allOf(CompletionStage<T>, CompletionStage<T>, CompletionStage<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given CompletionStages complete.
allOf(CompletionStage<T>, CompletionStage<T>, CompletionStage<T>, CompletionStage<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given CompletionStages complete.
allPromisedValues(List<PromisedValues<T>>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given PromisedValuess complete.
allPromisedValues(PromisedValues<T>, PromisedValues<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given PromisedValuess complete.
allPromisedValues(PromisedValues<T>, PromisedValues<T>, PromisedValues<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given PromisedValuess complete.
allPromisedValues(PromisedValues<T>, PromisedValues<T>, PromisedValues<T>, PromisedValues<T>) - Static method in interface org.dataloader.impl.PromisedValues
Returns a new PromisedValues that is completed when all of the given PromisedValuess complete.
Assertions - Class in org.dataloader.impl
 
Assertions() - Constructor for class org.dataloader.impl.Assertions
 
assertState(boolean, String) - Static method in class org.dataloader.impl.Assertions
 

B

batchingEnabled() - Method in class org.dataloader.DataLoaderOptions
Option that determines whether to use batching (the default), or not.
BatchLoader<K,V> - Interface in org.dataloader
A function that is invoked for batch loading a list of data values indicated by the provided list of keys.

C

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.
combineAllOf(List<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.
create() - Static method in class org.dataloader.DataLoaderOptions
 

D

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
Creates a new data loader with the provided batch load function, and default options.
DataLoader(BatchLoader<K, V>, DataLoaderOptions) - Constructor for class org.dataloader.DataLoader
Creates a new data loader with the provided batch load function and options.
DataLoaderOptions - Class in org.dataloader
Configuration options for DataLoader instances.
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.
DefaultCacheMap<U,V> - Class in org.dataloader.impl
Default implementation of CacheMap that is based on a regular LinkedHashMap.
DefaultCacheMap() - Constructor for class org.dataloader.impl.DefaultCacheMap
Default constructor
delete(U) - Method in interface org.dataloader.CacheMap
Deletes the entry with the specified key from the cache map, if it exists.
delete(U) - Method in class org.dataloader.impl.DefaultCacheMap
Deletes the entry with the specified key from the cache map, 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.
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
 

F

failed(CompletableFuture) - Static method in class org.dataloader.impl.CompletableFutureKit
 
failed() - Method in interface org.dataloader.impl.PromisedValues
 
failed() - Method in class org.dataloader.impl.PromisedValuesImpl
 
failedFuture(Exception) - Static method in class org.dataloader.impl.CompletableFutureKit
 

G

get(U) - Method in interface org.dataloader.CacheMap
Gets the specified key from the cache map.
get(U) - Method in class org.dataloader.impl.DefaultCacheMap
Gets the specified key from the cache map.
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
 
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.
getKey(K) - Method in interface org.dataloader.CacheKey
Returns the cache key that is created from the provided input key.

I

isDone() - Method in interface org.dataloader.impl.PromisedValues
The true if the all the futures have completed (and hence this PromisedValues has completed)
isDone() - Method in class org.dataloader.impl.PromisedValuesImpl
 

J

join() - Method in interface org.dataloader.impl.PromisedValues
Waits for the underlying futures to complete.
join() - Method in class org.dataloader.impl.PromisedValuesImpl
 

L

load(List<K>) - Method in interface org.dataloader.BatchLoader
Called to batch load the provided keys and return a promise to a list of values
load(K) - Method in class org.dataloader.DataLoader
Requests to load the data with the specified key asynchronously, and returns a future of the resulting value.
loadMany(List<K>) - Method in class org.dataloader.DataLoader
Requests to load the list of data provided by the specified keys asynchronously, and returns a composite future of the resulting values.

M

maxBatchSize() - Method in class org.dataloader.DataLoaderOptions
Gets the maximum number of keys that will be presented to the BatchLoader function before they are split into multiple class

N

nonNull(T) - Static method in class org.dataloader.impl.Assertions
 

O

org.dataloader - package org.dataloader
 
org.dataloader.impl - package org.dataloader.impl
 

P

prime(K, V) - Method in class org.dataloader.DataLoader
Primes the cache with the given key and value.
prime(K, Exception) - Method in class org.dataloader.DataLoader
Primes the cache with the given key and error.
PromisedValues<T> - Interface in org.dataloader.impl
This allows multiple CompletionStages to be combined together and completed as one and should something go wrong, instead of throwing CompletionExceptions it captures the cause and returns null for that data value, other wise it allows you to access them as a list of values.
PromisedValuesImpl<T> - Class in org.dataloader.impl
 

S

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.
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
simpleMap() - Static method in interface org.dataloader.CacheMap
Creates a new cache map, using the default implementation that is based on a LinkedHashMap.
size() - Method in interface org.dataloader.impl.PromisedValues
 
size() - Method in class org.dataloader.impl.PromisedValuesImpl
 
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
 

T

thenAccept(Consumer<PromisedValues<T>>) - Method in interface org.dataloader.impl.PromisedValues
When the all the futures complete, this call back will be invoked with this PromisedValues as a parameter
thenAccept(Consumer<PromisedValues<T>>) - Method in class org.dataloader.impl.PromisedValuesImpl
 
toCompletableFuture() - Method in interface org.dataloader.impl.PromisedValues
 
toCompletableFuture() - Method in class org.dataloader.impl.PromisedValuesImpl
 
toList() - Method in interface org.dataloader.impl.PromisedValues
Returns the underlying values as a list
toList() - Method in class org.dataloader.impl.PromisedValuesImpl
 
A B C D F G I J L M N O P S T 
Skip navigation links