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