Azure.Monitor.OpenTelemetry.LiveMetrics.Internals.DataCollection.DoubleBuffer
class DoubleBuffer
Implements a double buffering mechanism for handling DocumentIngress objects.
This allows for concurrent writes to one buffer while the other can be read from or processed.
The 'WriteDocument' method is used to add documents to the current active buffer.
The 'FlipDocumentBuffers' method swaps the current buffer with a new one, allowing the
consumer to process the documents in the returned buffer without interference from ongoing writes.
public DoubleBuffer()