Interface SplittingTransformerConfiguration.Builder

  • Method Details

    • bufferSizeInBytes

      SplittingTransformerConfiguration.Builder bufferSizeInBytes(Long bufferSize)
      Configures the maximum amount of memory in bytes buffered by the SplittingTransformer.
      Parameters:
      bufferSize - the buffer size in bytes
      Returns:
      This object for method chaining.
    • responseMapper

      Configures a response mapper that will be applied to the response before it is delivered to the upstream transformer's onResponse callback, allowing the response to be rewritten - for example, to report full-object metadata instead of the first part's. Applied once, to the first response; if not set, the response is delivered unchanged.

      Only applied by the default split implementation. A transformer that overrides split (such as a parallel, file-based one) may not read it, in which case it has no effect.

      Parameters:
      responseMapper - a function to transform the response before delivery, or null for no mapping
      Returns:
      This object for method chaining.