Interface QueueBuffer<T>
- All Known Implementing Classes:
ArrayBlockingQueueBuffer,Buffer
public interface QueueBuffer<T>
Queue buffer interface.
-
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
-
save
Save data into the queue;- Parameters:
data- to add.- Returns:
- true if saved
-
setStrategy
Set different strategy when queue is full. -
obtain
Obtain the existing data from the queue -
getBufferSize
int getBufferSize()
-