Class Buffer<T>
java.lang.Object
org.apache.skywalking.oap.server.library.datacarrier.buffer.Buffer<T>
- All Implemented Interfaces:
QueueBuffer<T>
Self implementation ring queue.
-
Method Summary
Modifier and TypeMethodDescriptionintvoidObtain the existing data from the queuebooleanSave data into the queue;voidsetStrategy(BufferStrategy strategy) Set different strategy when queue is full.
-
Method Details
-
setStrategy
Description copied from interface:QueueBufferSet different strategy when queue is full.- Specified by:
setStrategyin interfaceQueueBuffer<T>
-
save
Description copied from interface:QueueBufferSave data into the queue;- Specified by:
savein interfaceQueueBuffer<T>- Parameters:
data- to add.- Returns:
- true if saved
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfaceQueueBuffer<T>
-
obtain
Description copied from interface:QueueBufferObtain the existing data from the queue- Specified by:
obtainin interfaceQueueBuffer<T>
-