public interface Worker
Modifier and Type | Method and Description |
---|---|
void |
assign(TaskContext context,
java.util.Set<WorkItem> workItems)
Start processing the assigned
WorkItem items of the specified task. |
java.lang.String |
getType() |
void |
release(TaskContext context,
java.util.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.
|
java.lang.String getType()
void assign(TaskContext context, java.util.Set<WorkItem> workItems)
WorkItem
items of the specified task.context
- The context of the task.workItems
- The items to assign.void release(TaskContext context, java.util.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 © 2017 Red Hat. All Rights Reserved.