public interface Worker
| Modifier and Type | Method and Description |
|---|---|
void |
assign(TaskContext context,
Set<WorkItem> workItems)
Start processing the assigned
WorkItem items of the specified task. |
String |
getType() |
void |
release(TaskContext context,
Set<WorkItem> workItems)
Stop processing the assigned
WorkItem items of the specified task. |
void |
stop(TaskContext context)
Stops processing of items.
|
void |
stopAll()
Stops processing of items.
|
String getType()
void assign(TaskContext context, Set<WorkItem> workItems)
WorkItem items of the specified task.context - The context of the task.workItems - The items to assign.void release(TaskContext context, Set<WorkItem> workItems)
WorkItem items of the specified task.context - The context of the task.workItems - The items to assign.void stop(TaskContext context)
void stopAll()
Copyright © 2011–2014 Red Hat. All rights reserved.