| Modifier and Type | Field and Description |
|---|---|
org.slf4j.Logger |
log |
| Constructor and Description |
|---|
NoopTaskQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTask(Task task)
Deletes a task from the queue.
|
void |
deleteTasks(Set<Task> tasks)
Deletes a set of tasks
|
void |
extendVisibilityTimeout(Task task)
Responsible for robustly extending the visibility timeout of a Task.
|
String |
getName()
A name identifying the queue used for logging and analysis purposes.
|
void |
put(Set<Task> tasks)
puts multiple tasks on the queue using batch puts if the queue
implementation supports batch puts
|
void |
put(Task... tasks)
puts multiple tasks on the queue using batch puts if the queue
implementation supports batch puts
|
void |
put(Task task)
puts a task on the queue
|
void |
requeue(Task task)
Requeues the task by deleting the task, incrementing the "attempts"
counter, and re-adding back to the queue.
|
Integer |
size() |
Integer |
sizeIncludingInvisibleAndDelayed() |
Task |
take()
Blocks until a task is available
|
Set<Task> |
take(int maxTasks)
Take a max of specified number of tasks.
|
public String getName()
TaskQueuepublic void put(Task task)
TaskQueuepublic void put(Task... tasks)
TaskQueuepublic void put(Set<Task> tasks)
TaskQueuepublic Task take() throws TimeoutException
TaskQueuetake in interface TaskQueueTimeoutExceptionpublic void extendVisibilityTimeout(Task task) throws TaskNotFoundException
TaskQueueextendVisibilityTimeout in interface TaskQueueTaskNotFoundExceptionpublic void deleteTask(Task task) throws TaskNotFoundException
TaskQueuedeleteTask in interface TaskQueueTaskNotFoundExceptionpublic Integer size()
public Integer sizeIncludingInvisibleAndDelayed()
sizeIncludingInvisibleAndDelayed in interface TaskQueuepublic void requeue(Task task)
TaskQueuepublic void deleteTasks(Set<Task> tasks) throws TaskException
TaskQueuedeleteTasks in interface TaskQueueTaskExceptionpublic Set<Task> take(int maxTasks) throws TimeoutException
TaskQueuetake in interface TaskQueuemaxTasks - to take from queue. Must be between 1 and 10 inclusive.TimeoutExceptionCopyright © 2009–2017 DuraSpace. All rights reserved.