public class TaskQueue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Task |
head |
protected Task |
tail |
| Constructor and Description |
|---|
TaskQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
void |
offer(Task task) |
Task |
poll() |
void |
unpoll(Task task) |