Future.toCompletionStage()
with a plain BatchLoaderWithContext
@Deprecated public interface VertxBatchLoader<K,V> extends org.dataloader.BatchLoaderWithContext<K,V>
BatchLoaderWithContext
that works well with Vert.x callback and Future
based APIs.Modifier and Type | Method and Description |
---|---|
static <K,V> VertxBatchLoader<K,V> |
create(java.util.function.BiFunction<List<K>,org.dataloader.BatchLoaderEnvironment,Future<List<V>>> batchLoader)
Deprecated.
Create a new batch loader that works well with
Future based APIs. |
static <K,V> VertxBatchLoader<K,V> |
create(java.util.function.BiFunction<List<K>,org.dataloader.BatchLoaderEnvironment,Future<List<V>>> batchLoader,
java.util.function.Function<org.dataloader.BatchLoaderEnvironment,Context> contextProvider)
Deprecated.
Like
create(BiFunction) , except the method uses the provided contextProvider instead of capturing the current one. |
static <K,V> VertxBatchLoader<K,V> |
create(TriConsumer<List<K>,org.dataloader.BatchLoaderEnvironment,Promise<List<V>>> batchLoader)
Deprecated.
Create a new batch loader that works well with callback based APIs.
|
static <K,V> VertxBatchLoader<K,V> |
create(TriConsumer<List<K>,org.dataloader.BatchLoaderEnvironment,Promise<List<V>>> batchLoader,
java.util.function.Function<org.dataloader.BatchLoaderEnvironment,Context> contextProvider)
Deprecated.
Like
create(TriConsumer) , except the method uses the provided contextProvider instead of capturing the current one. |
static <K,V> VertxBatchLoader<K,V> create(TriConsumer<List<K>,org.dataloader.BatchLoaderEnvironment,Promise<List<V>>> batchLoader)
The provided batchLoader
will be invoked with the following arguments:
BatchLoaderEnvironment
Promise
that the implementor must complete after the data objects are loadedstatic <K,V> VertxBatchLoader<K,V> create(TriConsumer<List<K>,org.dataloader.BatchLoaderEnvironment,Promise<List<V>>> batchLoader, java.util.function.Function<org.dataloader.BatchLoaderEnvironment,Context> contextProvider)
create(TriConsumer)
, except the method uses the provided contextProvider
instead of capturing the current one.static <K,V> VertxBatchLoader<K,V> create(java.util.function.BiFunction<List<K>,org.dataloader.BatchLoaderEnvironment,Future<List<V>>> batchLoader)
Future
based APIs.
The provided batchLoader
will be invoked with the following arguments:
BatchLoaderEnvironment
static <K,V> VertxBatchLoader<K,V> create(java.util.function.BiFunction<List<K>,org.dataloader.BatchLoaderEnvironment,Future<List<V>>> batchLoader, java.util.function.Function<org.dataloader.BatchLoaderEnvironment,Context> contextProvider)
create(BiFunction)
, except the method uses the provided contextProvider
instead of capturing the current one.Copyright © 2024 Eclipse. All rights reserved.