Class VeniceResponseAggregator

    • Field Detail

      • MULTI_GET_VALID_HEADER_MAP

        public static final java.util.Map<java.lang.CharSequence,​java.lang.String> MULTI_GET_VALID_HEADER_MAP
      • COMPUTE_VALID_HEADER_MAP

        public static final java.util.Map<java.lang.CharSequence,​java.lang.String> COMPUTE_VALID_HEADER_MAP
    • Method Detail

      • withSingleGetTardyThreshold

        public VeniceResponseAggregator withSingleGetTardyThreshold​(long timeout,
                                                                    java.util.concurrent.TimeUnit unit)
      • withMultiGetTardyThreshold

        public VeniceResponseAggregator withMultiGetTardyThreshold​(long timeout,
                                                                   java.util.concurrent.TimeUnit unit)
      • withComputeTardyThreshold

        public VeniceResponseAggregator withComputeTardyThreshold​(long timeout,
                                                                  java.util.concurrent.TimeUnit unit)
      • initHelixGroupSelector

        public void initHelixGroupSelector​(HelixGroupSelector helixGroupSelector)
      • processComputeResponses

        protected io.netty.handler.codec.http.FullHttpResponse processComputeResponses​(java.util.List<io.netty.handler.codec.http.FullHttpResponse> responses,
                                                                                       java.lang.String storeName,
                                                                                       java.util.Optional<java.util.Map<java.lang.CharSequence,​java.lang.String>> optionalHeaders)
      • processMultiGetResponses

        protected io.netty.handler.codec.http.FullHttpResponse processMultiGetResponses​(java.util.List<io.netty.handler.codec.http.FullHttpResponse> responses,
                                                                                        java.lang.String storeName,
                                                                                        int version,
                                                                                        java.util.Optional<java.util.Map<java.lang.CharSequence,​java.lang.String>> optionalHeaders)
        If a part of a multi-get request fails, the entire request should fail from the client's perspective.
        Parameters:
        responses - Subset of responses from the SN to be concatenated to form the response to the client (guaranteed not empty).
        Returns:
        The concatenated response that should be sent to the client along with some content-related headers.