Class DisruptorSpanProcessorBuilder

java.lang.Object
io.opentelemetry.contrib.disruptor.trace.DisruptorSpanProcessorBuilder

public final class DisruptorSpanProcessorBuilder extends Object
  • Method Details

    • setBlocking

      public DisruptorSpanProcessorBuilder setBlocking(boolean blocking)
      If true blocks when the Disruptor's ring buffer is full.
      Parameters:
      blocking - true blocks when the Disruptor's ring buffer is full.
      Returns:
      this.
    • setBufferSize

      public DisruptorSpanProcessorBuilder setBufferSize(int bufferSize)
      Sets the buffer size for the Disruptor's ring buffer.
      Parameters:
      bufferSize - the buffer size for the Disruptor ring buffer.
      Returns:
      this.
    • setWaitingStrategy

      public DisruptorSpanProcessorBuilder setWaitingStrategy(com.lmax.disruptor.WaitStrategy waitingStrategy)
      Sets the WaitStrategy for the Disruptor's worker thread.
      Parameters:
      waitingStrategy - the WaitStrategy for the Disruptor's worker thread.
      Returns:
      this.
    • build

      public DisruptorSpanProcessor build()
      Returns a new DisruptorSpanProcessor.
      Returns:
      a new DisruptorSpanProcessor.