Package org.dataloader
Class ValueCacheOptions
- java.lang.Object
-
- org.dataloader.ValueCacheOptions
-
public class ValueCacheOptions extends java.lang.Object
Options that control how theValueCache
is used byDataLoader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCompleteValueAfterCacheSet()
This controls whether theDataLoader
will wait for theValueCache.set(Object, Object)
call to complete before it completes the returned value.static ValueCacheOptions
newOptions()
ValueCacheOptions
setCompleteValueAfterCacheSet(boolean flag)
-
-
-
Method Detail
-
newOptions
public static ValueCacheOptions 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
public ValueCacheOptions setCompleteValueAfterCacheSet(boolean flag)
-
-