Package org.dataloader
Class ValueCacheOptions
java.lang.Object
org.dataloader.ValueCacheOptions
Options that control how the
ValueCache
is used by DataLoader
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
ValueCacheOptions
(boolean completeValueAfterCacheSet) -
Method Summary
Modifier and TypeMethodDescriptionboolean
This controls whether theDataLoader
will wait for theValueCache.set(Object, Object)
call to complete before it completes the returned value.static ValueCacheOptions
setCompleteValueAfterCacheSet
(boolean flag)
-
Field Details
-
completeValueAfterCacheSet
private final boolean completeValueAfterCacheSet
-
-
Constructor Details
-
ValueCacheOptions
private ValueCacheOptions() -
ValueCacheOptions
private ValueCacheOptions(boolean completeValueAfterCacheSet)
-
-
Method Details
-
newOptions
-
isCompleteValueAfterCacheSet
public boolean isCompleteValueAfterCacheSet()This controls whether theDataLoader
will wait for theValueCache.set(Object, Object)
call to complete before it completes the returned value. By default this is false and hence theValueCache.set(Object, Object)
call may complete some time AFTER the data loader value has been returned. This is false by default, for performance reasons.- Returns:
- true the
DataLoader
will wait for theValueCache.set(Object, Object)
call to complete before it completes the returned value.
-
setCompleteValueAfterCacheSet
-