public class BatchLoaderHandlerMethod extends InvocableHandlerMethodSupport
HandlerMethod for annotated handler methods adapted to
BatchLoaderWithContext or
MappedBatchLoaderWithContext with the list of keys and
BatchLoaderEnvironment as their input.HandlerMethod.HandlerMethodParameterlogger| Constructor and Description |
|---|
BatchLoaderHandlerMethod(HandlerMethod handlerMethod) |
| Modifier and Type | Method and Description |
|---|---|
<V> reactor.core.publisher.Flux<V> |
invokeForIterable(java.util.Collection<?> keys,
org.dataloader.BatchLoaderEnvironment environment)
Invoke the underlying batch loader method with a collection of input keys
to return a collection of matching values.
|
<K,V> reactor.core.publisher.Mono<java.util.Map<K,V>> |
invokeForMap(java.util.Collection<K> keys,
org.dataloader.BatchLoaderEnvironment environment)
Invoke the underlying batch loader method with a collection of keys to
return a Map of key-value pairs.
|
doInvoke, toArgsMonoassertTargetBean, createWithResolvedBean, equals, findProvidedArgument, formatArgumentError, formatInvokeError, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getReturnType, getReturnValueType, getShortLogMessage, hashCode, hasMethodAnnotation, isVoid, toStringpublic BatchLoaderHandlerMethod(HandlerMethod handlerMethod)
@Nullable
public <K,V> reactor.core.publisher.Mono<java.util.Map<K,V>> invokeForMap(java.util.Collection<K> keys,
org.dataloader.BatchLoaderEnvironment environment)
K - the type of keys in the mapV - the type of values in the mapkeys - the keys for which to load valuesenvironment - the environment available to batch loadersMono with map of key-value pairs.public <V> reactor.core.publisher.Flux<V> invokeForIterable(java.util.Collection<?> keys,
org.dataloader.BatchLoaderEnvironment environment)
V - the type of values returnedkeys - the keys for which to load valuesenvironment - the environment available to batch loadersFlux of values.