Class ResponseHeadersCollector

java.lang.Object
org.elasticsearch.compute.operator.ResponseHeadersCollector

public final class ResponseHeadersCollector extends Object
A helper class that can be used to collect and merge response headers from multiple child requests.
  • Constructor Details

    • ResponseHeadersCollector

      public ResponseHeadersCollector(ThreadContext threadContext)
  • Method Details

    • collect

      public void collect()
      Called when a child request is completed to collect the response headers of the responding thread
    • finish

      public void finish()
      Called when all child requests are completed. This will merge all collected response headers from the child requests and restore to the current thread.