public interface WorkersPlugin
extends io.vertigo.core.component.Plugin
| Modifier and Type | Method and Description |
|---|---|
<R,W> WorkItem<R,W> |
pollWorkItem(String nodeId,
String workType)
Polling workitem.
|
<R> void |
putResult(String workId,
R result,
Throwable error)
Send result or error if execution failed
|
void |
putStart(String workId) |
<R,W> WorkItem<R,W> pollWorkItem(String nodeId, String workType)
R - resultW - workworkType - Type de tache<R> void putResult(String workId, R result, Throwable error)
R - resultworkId - WorkIdresult - Result (not null if execution succeeded)error - Error ( not null if execution failed)void putStart(String workId)
Copyright © 2017. All Rights Reserved.