public class ValueCacheOptions
extends java.lang.Object
ValueCache
is used by DataLoader
Modifier and Type | Method and Description |
---|---|
boolean |
isCompleteValueAfterCacheSet()
This controls whether the
DataLoader will wait for the ValueCache.set(Object, Object) call
to complete before it completes the returned value. |
static ValueCacheOptions |
newOptions() |
ValueCacheOptions |
setCompleteValueAfterCacheSet(boolean flag) |
public static ValueCacheOptions newOptions()
public boolean isCompleteValueAfterCacheSet()
DataLoader
will wait for the ValueCache.set(Object, Object)
call
to complete before it completes the returned value. By default, this is false and hence
the ValueCache.set(Object, Object)
call may complete some time AFTER the data loader
value has been returned.
This is false by default, for performance reasons.DataLoader
will wait for the ValueCache.set(Object, Object)
call to complete before
it completes the returned value.public ValueCacheOptions setCompleteValueAfterCacheSet(boolean flag)