Class ProcessorLibrary.EagerReturnFederator

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.processing.test.ProcessorLibrary.EagerReturnFederator
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>
Enclosing class:
ProcessorLibrary

public static class ProcessorLibrary.EagerReturnFederator extends Processor
A federator which supports returning frozen data from each chain before the response is returned.
  • Constructor Details

    • EagerReturnFederator

      @SafeVarargs public EagerReturnFederator(Chain<? extends Processor>... chains)
      Federates over the given chains. Returns an ordered response.
    • EagerReturnFederator

      @SafeVarargs public EagerReturnFederator(boolean ordered, Chain<? extends Processor>... chains)
      Federates over the given chains
      Parameters:
      ordered - true if the returned list should be ordered (default), false if it should be permissible to render the datalist from each federated source in the order it completes.
  • Method Details

    • process

      public Response process(Request request, Execution execution)
      Description copied from class: Processor
      Performs a processing request and returns the response
      Specified by:
      process in class Processor
      Returns:
      a Response instance - never null - containing the data produced by this processor and those it forwards the request to