Package me.hsgamer.hscore.task
Class BatchRunnable.TaskPool
java.lang.Object
me.hsgamer.hscore.task.BatchRunnable.TaskPool
- Enclosing class:
- BatchRunnable
The task pool of the
BatchRunnable-
Method Summary
Modifier and TypeMethodDescriptionAdd the task to the head of the task poolAdd the task to the head of the task poolAdd the task to the tail of the task pooladdLast(Consumer<BatchRunnable.Process> task) Add the task to the tail of the task pool
-
Method Details
-
addFirst
Add the task to the head of the task pool- Parameters:
task- the task- Returns:
- the current task pool, for chaining
-
addLast
Add the task to the tail of the task pool- Parameters:
task- the task- Returns:
- the current task pool, for chaining
-
addFirst
Add the task to the head of the task pool- Parameters:
task- the task- Returns:
- the current task pool, for chaining
-
addLast
Add the task to the tail of the task pool- Parameters:
task- the task- Returns:
- the current task pool, for chaining
-