Class ValueCacheOptions
java.lang.Object
org.dataloader.ValueCacheOptions
Options that control how the
ValueCache is used by DataLoader-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateValueCacheOptions(boolean completeValueAfterCacheSet) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis controls whether theDataLoaderwill wait for theValueCache.set(Object, Object)call to complete before it completes the returned value.static ValueCacheOptionssetCompleteValueAfterCacheSet(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 theDataLoaderwill 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
DataLoaderwill wait for theValueCache.set(Object, Object)call to complete before it completes the returned value.
-
setCompleteValueAfterCacheSet
-