Class PipelineSettings.Builder

All Implemented Interfaces:
WithJson<PipelineSettings.Builder>, ObjectBuilder<PipelineSettings>
Enclosing class:
PipelineSettings

public static class PipelineSettings.Builder extends WithJsonObjectBuilderBase<PipelineSettings.Builder> implements ObjectBuilder<PipelineSettings>
Builder for PipelineSettings.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • pipelineWorkers

      public final PipelineSettings.Builder pipelineWorkers(int value)
      Required - The number of workers that will, in parallel, execute the filter and output stages of the pipeline.

      API name: pipeline.workers

    • pipelineBatchSize

      public final PipelineSettings.Builder pipelineBatchSize(int value)
      Required - The maximum number of events an individual worker thread will collect from inputs before attempting to execute its filters and outputs.

      API name: pipeline.batch.size

    • pipelineBatchDelay

      public final PipelineSettings.Builder pipelineBatchDelay(int value)
      Required - When creating pipeline event batches, how long in milliseconds to wait for each event before dispatching an undersized batch to pipeline workers.

      API name: pipeline.batch.delay

    • queueType

      public final PipelineSettings.Builder queueType(String value)
      Required - The internal queuing model to use for event buffering.

      API name: queue.type

    • queueMaxBytesNumber

      public final PipelineSettings.Builder queueMaxBytesNumber(int value)
      Required - The total capacity of the queue (queue.type: persisted) in number of bytes.

      API name: queue.max_bytes.number

    • queueMaxBytesUnits

      public final PipelineSettings.Builder queueMaxBytesUnits(String value)
      Required - The total capacity of the queue (queue.type: persisted) in terms of units of bytes.

      API name: queue.max_bytes.units

    • queueCheckpointWrites

      public final PipelineSettings.Builder queueCheckpointWrites(int value)
      Required - The maximum number of written events before forcing a checkpoint when persistent queues are enabled (queue.type: persisted).

      API name: queue.checkpoint.writes

    • self

      protected PipelineSettings.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<PipelineSettings.Builder>
    • build

      public PipelineSettings build()
      Specified by:
      build in interface ObjectBuilder<PipelineSettings>
      Throws:
      NullPointerException - if some of the required fields are null.