Package io.vertigo.stella.impl.workers
Interface WorkersPlugin
- All Superinterfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin
- All Known Implementing Classes:
RedisWorkersPlugin,RestWorkersPlugin
public interface WorkersPlugin
extends io.vertigo.core.node.component.Plugin
NodePlugin
- Author:
- pchretien
-
Method Summary
-
Method Details
-
pollWorkItem
Polling workitem.- Type Parameters:
R- resultW- work- Parameters:
workType- Type de tache- Returns:
- Workitem or null (if timeout)
-
putResult
<R> void putResult(String callerNodeId, String nodeId, String workType, String workId, R result, Throwable error) Send result or error if execution failed- Type Parameters:
R- result- Parameters:
workId- WorkIdresult- Result (not null if execution succeeded)error- Error ( not null if execution failed)
-
putStart
-
heartBeat
-