|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskQueue
This is the interface for a simple queue that allows to append or push arrays of tasks to it. The elements of such an array are added atomically (i.e, they are in the same order one after the other in the queue) either at the end or the front of the queue. Additionally, the queue can be closed.
Method Summary | |
---|---|
void |
append(HandlerTask[] tasks)
Append the tasks to this queue in one atomic operation while preserving their order. |
void |
close(HandlerTask shutdownTask)
Close the queue. |
void |
push(HandlerTask[] tasks)
Push the tasks to this queue in one atomic operation while preserving their order. |
Method Detail |
---|
void append(HandlerTask[] tasks)
tasks
- The tasks to append to this queue
IllegalStateException
- in case that this queue is already closedvoid push(HandlerTask[] tasks)
tasks
- The tasks to push to the front of this queue.
IllegalStateException
- in case that this queue is already closedvoid close(HandlerTask shutdownTask)
shutdownTask
- The task to execute once the queue is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |