|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractQueue<E> java.util.concurrent.ConcurrentLinkedQueue<T> kieker.tools.opad.timeseries.TimeSeriesPointsBuffer<T>
T
- The type of the buffer.public class TimeSeriesPointsBuffer<T>
This is a thread-safe buffer for time series points, which has or has not a fixed capacity.
Constructor Summary | |
---|---|
TimeSeriesPointsBuffer()
Creates a new instance with infinite capacity. |
|
TimeSeriesPointsBuffer(int capacity)
Creates a new instance with the given capacity. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue |
---|
contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArray |
Methods inherited from class java.util.AbstractQueue |
---|
addAll, clear, element |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Queue |
---|
element |
Methods inherited from interface java.util.Collection |
---|
addAll, clear, containsAll, equals, hashCode, removeAll, retainAll |
Constructor Detail |
---|
public TimeSeriesPointsBuffer()
public TimeSeriesPointsBuffer(int capacity)
capacity
- The capacity of the bufferMethod Detail |
---|
public boolean add(T o)
ITimeSeriesPointsBuffer
add
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 add
public T remove()
ITimeSeriesPointsBuffer
remove
in interface java.util.Queue<T>
remove
in interface ITimeSeriesPointsBuffer<T>
remove
in class java.util.AbstractQueue<T>
public int getSize()
ITimeSeriesPointsBuffer
getSize
in interface ITimeSeriesPointsBuffer<T>
public void printBuffer()
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |