Class BlockingDeserializer<E,​K,​V>


  • public class BlockingDeserializer<E,​K,​V>
    extends BatchDeserializer<E,​K,​V>
    This BatchDeserializer does not do anything asynchronously. It simply deserializes all records sequentially on the same thread that called it.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockingDeserializer​(java.util.concurrent.Executor deserializationExecutor, ClientConfig clientConfig)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deserialize​(java.util.concurrent.CompletableFuture<java.util.Map<K,​V>> valueFuture, java.lang.Iterable<E> envelopes, java.util.List<K> keyList, java.util.function.BiConsumer<java.util.Map<K,​V>,​E> envelopeProcessor, Reporter responseDeserializationComplete, java.util.Optional<ClientStats> stats, long preResponseEnvelopeDeserialization)  
      • Methods inherited from class java.lang.Object

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

      • BlockingDeserializer

        public BlockingDeserializer​(java.util.concurrent.Executor deserializationExecutor,
                                    ClientConfig clientConfig)
    • Method Detail

      • deserialize

        public void deserialize​(java.util.concurrent.CompletableFuture<java.util.Map<K,​V>> valueFuture,
                                java.lang.Iterable<E> envelopes,
                                java.util.List<K> keyList,
                                java.util.function.BiConsumer<java.util.Map<K,​V>,​E> envelopeProcessor,
                                Reporter responseDeserializationComplete,
                                java.util.Optional<ClientStats> stats,
                                long preResponseEnvelopeDeserialization)
        Specified by:
        deserialize in class BatchDeserializer<E,​K,​V>