Class DisruptorSpanProcessorBuilder
java.lang.Object
io.opentelemetry.contrib.disruptor.trace.DisruptorSpanProcessorBuilder
Builder for
DisruptorSpanProcessor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newDisruptorSpanProcessor.setBlocking(boolean blocking) Iftrueblocks when the Disruptor's ring buffer is full.setBufferSize(int bufferSize) Sets the buffer size for the Disruptor's ring buffer.setWaitingStrategy(com.lmax.disruptor.WaitStrategy waitingStrategy) Sets theWaitStrategyfor the Disruptor's worker thread.
-
Method Details
-
setBlocking
Iftrueblocks when the Disruptor's ring buffer is full.- Parameters:
blocking-trueblocks when the Disruptor's ring buffer is full.- Returns:
- this.
-
setBufferSize
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 theWaitStrategyfor the Disruptor's worker thread.- Parameters:
waitingStrategy- theWaitStrategyfor the Disruptor's worker thread.- Returns:
- this.
-
build
Returns a newDisruptorSpanProcessor.- Returns:
- a new
DisruptorSpanProcessor.
-