| Package | Description |
|---|---|
| com.spikeify.taskqueue.entities | |
| com.spikeify.taskqueue.service |
| Modifier and Type | Method and Description |
|---|---|
TaskStatistics.Builder |
TaskStatistics.Builder.include(QueueTask item) |
| Modifier and Type | Method and Description |
|---|---|
QueueTask |
TaskQueueService.add(Job job,
String queueName)
Adds job to queue
|
QueueTask |
DefaultTaskQueueService.add(Job job,
String queueName) |
QueueTask |
TaskQueueService.next(String queueName)
Gets next job to be executed (put in running state)
|
QueueTask |
DefaultTaskQueueService.next(String queueName)
Returns next open and put's it into running state
...
|
QueueTask |
TaskQueueService.transition(QueueTask task,
TaskState state)
Transitions job from current state to new state
This is done in transaction so only one thread can change the state (this is then the worker thread for this job)
|
QueueTask |
DefaultTaskQueueService.transition(QueueTask task,
TaskState newState) |
| Modifier and Type | Method and Description |
|---|---|
List<QueueTask> |
TaskQueueService.list(TaskState state,
String queueName)
Lists all tasks from queue in given state
|
List<QueueTask> |
DefaultTaskQueueService.list(TaskState state,
String queueName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DefaultTaskQueueService.remove(QueueTask task)
Removes job from queue
|
QueueTask |
TaskQueueService.transition(QueueTask task,
TaskState state)
Transitions job from current state to new state
This is done in transaction so only one thread can change the state (this is then the worker thread for this job)
|
QueueTask |
DefaultTaskQueueService.transition(QueueTask task,
TaskState newState) |
Copyright © 2015. All rights reserved.