class CircularBuffer[T](maxBufferSize: Int)(implicit evidence$1: ClassTag[T])
A circular buffer of a fixed size backed by an Array.
The buffer does not allow to store null items.
The position to read and write elements in the buffer is stored in the readPointer and writePointer pointers (i.e. indexes of the array) to avoid moving objects from one position to another in the buffer.
The CircularBuffer is thread safe.
Type parameters
T
the type of the objects stored in the buffer
Value parameters
maxBufferSize
The max number of items to store in the circular buffer