Package org.dataloader
Class ValueCacheOptions
java.lang.Object
org.dataloader.ValueCacheOptions
Options that control how the
ValueCache
is used by DataLoader
-
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)
-
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
-