Class ReactiveSupport


  • public class ReactiveSupport
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ReactiveSupport.HelperIntegration<K>
      Just some callbacks to the data loader code to do common tasks
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveSupport()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      org.reactivestreams.Subscriber<V>
      batchSubscriber​(java.util.concurrent.CompletableFuture<java.util.List<V>> valuesFuture, java.util.List<K> keys, java.util.List<java.lang.Object> callContexts, java.util.List<java.util.concurrent.CompletableFuture<V>> queuedFutures, ReactiveSupport.HelperIntegration<K> helperIntegration)  
      static <K,​V>
      org.reactivestreams.Subscriber<java.util.Map.Entry<K,​V>>
      mappedBatchSubscriber​(java.util.concurrent.CompletableFuture<java.util.List<V>> valuesFuture, java.util.List<K> keys, java.util.List<java.lang.Object> callContexts, java.util.List<java.util.concurrent.CompletableFuture<V>> queuedFutures, ReactiveSupport.HelperIntegration<K> helperIntegration)  
      • Methods inherited from class java.lang.Object

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

      • ReactiveSupport

        public ReactiveSupport()
    • Method Detail

      • batchSubscriber

        public static <K,​V> org.reactivestreams.Subscriber<V> batchSubscriber​(java.util.concurrent.CompletableFuture<java.util.List<V>> valuesFuture,
                                                                                    java.util.List<K> keys,
                                                                                    java.util.List<java.lang.Object> callContexts,
                                                                                    java.util.List<java.util.concurrent.CompletableFuture<V>> queuedFutures,
                                                                                    ReactiveSupport.HelperIntegration<K> helperIntegration)
      • mappedBatchSubscriber

        public static <K,​V> org.reactivestreams.Subscriber<java.util.Map.Entry<K,​V>> mappedBatchSubscriber​(java.util.concurrent.CompletableFuture<java.util.List<V>> valuesFuture,
                                                                                                                       java.util.List<K> keys,
                                                                                                                       java.util.List<java.lang.Object> callContexts,
                                                                                                                       java.util.List<java.util.concurrent.CompletableFuture<V>> queuedFutures,
                                                                                                                       ReactiveSupport.HelperIntegration<K> helperIntegration)