Class JobStateTimeoutQueue
java.lang.Object
io.deephaven.enterprise.comm.sched.JobStateTimeoutQueue
- All Implemented Interfaces:
Cloneable
A priority queue (heap) for JobState instances, ordered by their deadlines. Note that this class is package-private.
Created by IntelliJ IDEA. User: jrauser Date: May 14, 2007 Time: 5:37:31 PM To change this template use File |
Settings | File Templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clone the queue (for testing)voidAdds a job to to the timeout queuebooleanisEmpty()Returns true if the priority queue contains no elements.voidjunitGetAllJobs(Set<Job> jobs) voidremove an arbitrary element from the timeout queuevoidRemove the top element from the timeout queue.intsize()return the priority queue's sizebooleantestInvariant(String what) top()Return the top of the timeout queue - the next timeout
-
Constructor Details
-
JobStateTimeoutQueue
public JobStateTimeoutQueue(com.fishlib.io.logger.Logger log, int initialSize)
-
-
Method Details
-
clone
clone the queue (for testing)- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
size
public int size()return the priority queue's size -
isEmpty
public boolean isEmpty()Returns true if the priority queue contains no elements. -
enter
Adds a job to to the timeout queue -
top
Return the top of the timeout queue - the next timeout -
removeTop
public void removeTop()Remove the top element from the timeout queue. -
remove
remove an arbitrary element from the timeout queue -
testInvariant
-
junitGetAllJobs
-