Skip navigation links
com.oracle.cep.cluster.ha.adapter
Class TimedTrimmableQueue
java.lang.Object
|
+--com.oracle.cep.cluster.ha.adapter.TimedTrimmableQueue
- public class TimedTrimmableQueue
- extends java.lang.Object
- implements TrimmableQueue
TrimmableQueue that records the entry time of events into the window and thus can be easily trimmed of older events.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimedTrimmableQueue
public TimedTrimmableQueue()
add
public boolean add(java.lang.Object e)
-
- Specified by:
- add in interface TrimmableQueue
poll
public java.lang.Object poll()
-
- Specified by:
- poll in interface TrimmableQueue
removeOlderThan
public void removeOlderThan(long timeMillis)
size
public int size()
-
- Specified by:
- size in interface TrimmableQueue
peek
public java.lang.Object peek()
-
- Specified by:
- peek in interface TrimmableQueue
clear
public void clear()
-
- Specified by:
- clear in interface TrimmableQueue