public class TimestampedQueueImpl<T> extends QueueImpl<T> implements ITimestampedQueue<T>
| Constructor and Description |
|---|
TimestampedQueueImpl(int size) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastGetTimestamp()
Returns the time of the last get.
|
long |
getLastPutTimestamp()
Returns the time of the last put.
|
T |
nextElement()
Returns the nextElement from the queue, removes the element from
the queue afterwards.
|
void |
putElement(T o)
Puts a new element in the queue.
|
addListener, getElementCount, hasElements, removeListener, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getElementCount, hasElements, removeListener, sizepublic T nextElement()
IQueuenextElement in interface IQueue<T>nextElement in class QueueImpl<T>public void putElement(T o)
QueueImplputElement in interface IQueue<T>putElement in class QueueImpl<T>public long getLastPutTimestamp()
ITimestampedQueuegetLastPutTimestamp in interface ITimestampedQueue<T>public long getLastGetTimestamp()
ITimestampedQueuegetLastGetTimestamp in interface ITimestampedQueue<T>Copyright © 2010-2014 anotheria.net. All Rights Reserved.