Class DataLoaderWithContext<K,​V>


  • @NullMarked
    public class DataLoaderWithContext<K,​V>
    extends org.dataloader.DelegatingDataLoader<K,​V>
    • Field Summary

      • Fields inherited from class org.dataloader.DelegatingDataLoader

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<V> load​(@NonNull K key, @Nullable java.lang.Object keyContext)  
      • Methods inherited from class org.dataloader.DelegatingDataLoader

        clear, clear, clearAll, clearAll, dispatch, dispatchAndJoin, dispatchDepth, dispatchWithCounts, getCacheKey, getCacheMap, getDelegate, getIfCompleted, getIfPresent, getLastDispatchTime, getStatistics, getTimeSinceDispatch, getValueCache, prime, prime, prime, transform, unwrap
      • Methods inherited from class org.dataloader.DataLoader

        getBatchLoadFunction, getName, getOptions, load, loadMany, loadMany, loadMany, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataLoaderWithContext

        public DataLoaderWithContext​(DataFetchingEnvironment dfe,
                                     java.lang.String dataLoaderName,
                                     org.dataloader.DataLoader<K,​V> delegate)
    • Method Detail

      • load

        public java.util.concurrent.CompletableFuture<V> load​(@NonNull K key,
                                                              @Nullable java.lang.Object keyContext)
        Overrides:
        load in class org.dataloader.DelegatingDataLoader<K,​V>