Class BlackHoleDeserializer<E,K,V>
- java.lang.Object
-
- com.linkedin.venice.client.store.deserialization.BatchDeserializer<E,K,V>
-
- com.linkedin.venice.client.store.deserialization.BlackHoleDeserializer<E,K,V>
-
public class BlackHoleDeserializer<E,K,V> extends BatchDeserializer<E,K,V>
ThisBatchDeserializer
does nothing, and always returns an empty list. The intent is to use this serializer in order to stress the Venice backend services with more requests, while doing as little work as possible in the client. This can also be used to test the transport-only portion of the client, without any deserialization costs.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.client.store.deserialization.BatchDeserializer
clientConfig, deserializationExecutor
-
-
Constructor Summary
Constructors Constructor Description BlackHoleDeserializer(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)
-
-
-
Constructor Detail
-
BlackHoleDeserializer
public BlackHoleDeserializer(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 classBatchDeserializer<E,K,V>
-
-