Interface ConcurrentExecutorConfiguration.Builder

  • Method Details

    • runtime

      The expression language used to evaluate expressions in the function configuration. Set this to JSONata.

      Parameters:
      runtime - The expression language used to evaluate expressions in the function configuration. Set this to JSONata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • runtime

      The expression language used to evaluate expressions in the function configuration. Set this to JSONata.

      Parameters:
      runtime - The expression language used to evaluate expressions in the function configuration. Set this to JSONata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • output

      A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete. Each key is a namespaced output path, and each value is an expression that MediaTailor evaluates against the combined results of the child functions.

      Parameters:
      output - A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete. Each key is a namespaced output path, and each value is an expression that MediaTailor evaluates against the combined results of the child functions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • functionList

      The list of child functions that MediaTailor runs in parallel. Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs.

      Parameters:
      functionList - The list of child functions that MediaTailor runs in parallel. Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • functionList

      The list of child functions that MediaTailor runs in parallel. Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs.

      Parameters:
      functionList - The list of child functions that MediaTailor runs in parallel. Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • functionList

      The list of child functions that MediaTailor runs in parallel. Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs.

      This is a convenience method that creates an instance of the FunctionRef.Builder avoiding the need to create one manually via FunctionRef.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to functionList(List<FunctionRef>).

      Parameters:
      functionList - a consumer that will call methods on FunctionRef.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timeoutMilliseconds

      ConcurrentExecutorConfiguration.Builder timeoutMilliseconds(Integer timeoutMilliseconds)

      The maximum time, in milliseconds, for all child functions to complete. This timeout covers every function in the list, including any HTTP calls the child functions make. If the executor exceeds this timeout, MediaTailor discards all output from the executor and proceeds with default behavior.

      Parameters:
      timeoutMilliseconds - The maximum time, in milliseconds, for all child functions to complete. This timeout covers every function in the list, including any HTTP calls the child functions make. If the executor exceeds this timeout, MediaTailor discards all output from the executor and proceeds with default behavior.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxConcurrency

      ConcurrentExecutorConfiguration.Builder maxConcurrency(Integer maxConcurrency)

      The maximum number of child functions that MediaTailor runs simultaneously. When the list contains more functions than MaxConcurrency, MediaTailor starts additional functions as running ones complete, so that no more than MaxConcurrency functions run at the same time.

      Parameters:
      maxConcurrency - The maximum number of child functions that MediaTailor runs simultaneously. When the list contains more functions than MaxConcurrency, MediaTailor starts additional functions as running ones complete, so that no more than MaxConcurrency functions run at the same time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.