public class TimePriorityQueue
extends java.lang.Object
Constructor and Description |
---|
TimePriorityQueue()
Constructor
|
Modifier and Type | Method and Description |
---|---|
psdi.app.eventresponse.ERKey |
pop()
Returns the key of the eldest entry.
|
void |
push(psdi.app.eventresponse.ERKey key)
Adds the key with the current date/time.
|
void |
remove(psdi.app.eventresponse.ERKey key)
Removes any entry with the given key.
|
void |
setExpirationTime(int ms)
Sets the time when keys are considered expired and will be released by the
pop method.
|
public void push(psdi.app.eventresponse.ERKey key)
key
- public void remove(psdi.app.eventresponse.ERKey key)
key
- public void setExpirationTime(int ms)
ms
- public psdi.app.eventresponse.ERKey pop()