Package com.bytedesk.core.uid.buffer
package com.bytedesk.core.uid.buffer
-
ClassDescriptionBuffered UID provider(Lambda supported), which provides UID in the same one secondRepresents an executor for padding
RingBuffer
There are two kinds of executors: one for scheduled padding, the other for padding immediately.If tail catches the cursor it means that the ring buffer is full, any more buffer put request will be rejected.If cursor catches the tail it means that the ring buffer is empty, any more buffer take request will be rejected.Represents a ring buffer based on array.
Using array could improve read element performance due to the CUP cache line.