T - The type of the buffer.public class TimeSeriesPointsBuffer<T> extends java.util.concurrent.ConcurrentLinkedQueue<T> implements ITimeSeriesPointsBuffer<T>
| Constructor and Description |
|---|
TimeSeriesPointsBuffer()
Creates a new instance with infinite capacity.
|
TimeSeriesPointsBuffer(int capacity)
Creates a new instance with the given capacity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o)
Add an Object to the tail of the Buffer.
|
int |
getSize()
Returns the current size of the buffer.
|
void |
printBuffer()
print buffer.
|
T |
remove()
Removes a Value from the buffer in FIFO order.
|
addAll, contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArraycontainsAll, removeAll, retainAll, toStringpublic TimeSeriesPointsBuffer()
public TimeSeriesPointsBuffer(int capacity)
capacity - The capacity of the bufferpublic boolean add(T o)
ITimeSeriesPointsBufferadd in interface java.util.Collection<T>add in interface java.util.Queue<T>add in interface ITimeSeriesPointsBuffer<T>add in class java.util.concurrent.ConcurrentLinkedQueue<T>o - The Value to addpublic T remove()
ITimeSeriesPointsBufferremove in interface java.util.Queue<T>remove in interface ITimeSeriesPointsBuffer<T>remove in class java.util.AbstractQueue<T>public int getSize()
ITimeSeriesPointsBuffergetSize in interface ITimeSeriesPointsBuffer<T>public void printBuffer()
Copyright 2017 Kieker Project, http://kieker-monitoring.net