public class ServerPriorityQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Deque<ServerJob> |
baseQueue |
protected ServerJob |
interruptedJob |
protected int |
priority |
Constructor and Description |
---|
ServerPriorityQueue(int priority) |
protected final int priority
protected ServerJob interruptedJob
protected final java.util.Deque<ServerJob> baseQueue
public void append(ServerJob job)
public void insert(ServerJob job)
public void putBack(ServerJob job)
public ServerJob popHead()
public ServerJob head()
public int getLength()
public boolean isEmpty()
public int getPriority()