public interface WorkerPlugin extends Plugin
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getWorkTypes() |
<WR,W> WorkItem<WR,W> |
pollWorkItem(String workType,
int timeoutInSeconds)
Polling workitem.
|
<WR> void |
putResult(String workId,
WR result,
Throwable error)
Send result or error if execution failed
|
void |
putStart(String workId) |
<WR,W> WorkItem<WR,W> pollWorkItem(String workType, int timeoutInSeconds)
workType - timeoutInSeconds - <WR> void putResult(String workId, WR result, Throwable error)
workId - WorkIdresult - Result (not null if execution succeeded)error - Error ( not null if execution failed)void putStart(String workId)
Copyright © 2014. All Rights Reserved.