public class BatchLoaderEnvironment
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BatchLoaderEnvironment.Builder |
Modifier and Type | Method and Description |
---|---|
<T> T |
getContext()
Returns the overall context object provided by
BatchLoaderContextProvider |
java.util.Map<java.lang.Object,java.lang.Object> |
getKeyContexts()
Each call to
DataLoader.load(Object, Object) or
DataLoader.loadMany(java.util.List, java.util.List) can be given
a context object when it is invoked. |
java.util.List<java.lang.Object> |
getKeyContextsList()
Each call to
DataLoader.load(Object, Object) or
DataLoader.loadMany(java.util.List, java.util.List) can be given
a context object when it is invoked. |
static BatchLoaderEnvironment.Builder |
newBatchLoaderEnvironment() |
public <T> T getContext()
BatchLoaderContextProvider
T
- the type you would like the object to bepublic java.util.Map<java.lang.Object,java.lang.Object> getKeyContexts()
DataLoader.load(Object, Object)
or
DataLoader.loadMany(java.util.List, java.util.List)
can be given
a context object when it is invoked. A map of them is present by this method.public java.util.List<java.lang.Object> getKeyContextsList()
DataLoader.load(Object, Object)
or
DataLoader.loadMany(java.util.List, java.util.List)
can be given
a context object when it is invoked. A list of them is present by this method.public static BatchLoaderEnvironment.Builder newBatchLoaderEnvironment()