public interface Worker
perform(TaskContext).
The implementation must be thread safe.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
void |
perform(TaskContext taskContext)
Performs a computation on the data available in the
TaskContext, such as a task for this worker, input and
(if configured) output slots. |
void perform(TaskContext taskContext) throws java.lang.Exception
TaskContext, such as a task for this worker, input and
(if configured) output slots. An implementor must make sure, calls to this method must be thread-safe!taskContext - the TaskContext information with which this operation can be performed.java.lang.Exceptionjava.lang.String getName()