Package org.dataloader
Class DispatchResult<T>
- java.lang.Object
-
- org.dataloader.DispatchResult<T>
-
- Type Parameters:
T
- for two
@PublicApi public class DispatchResult<T> extends java.lang.Object
When a DataLoader is dispatched this object holds the promised results and also the count of key asked for via methods likeDataLoader.load(Object)
orDataLoader.loadMany(java.util.List)
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CompletableFuture<java.util.List<T>>
futureList
private int
keysCount
-
Constructor Summary
Constructors Constructor Description DispatchResult(java.util.concurrent.CompletableFuture<java.util.List<T>> futureList, int keysCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getKeysCount()
java.util.concurrent.CompletableFuture<java.util.List<T>>
getPromisedResults()
-
-
-
Field Detail
-
futureList
private final java.util.concurrent.CompletableFuture<java.util.List<T>> futureList
-
keysCount
private final int keysCount
-
-
Constructor Detail
-
DispatchResult
public DispatchResult(java.util.concurrent.CompletableFuture<java.util.List<T>> futureList, int keysCount)
-
-
Method Detail
-
getPromisedResults
public java.util.concurrent.CompletableFuture<java.util.List<T>> getPromisedResults()
-
getKeysCount
public int getKeysCount()
-
-