public final class RedisWorkersPlugin extends Object implements WorkersPlugin
| Constructor and Description |
|---|
RedisWorkersPlugin(io.vertigo.commons.codec.CodecManager codecManager,
io.vertigo.commons.impl.connectors.redis.RedisConnector redisConnector) |
| 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) |
@Inject
public RedisWorkersPlugin(io.vertigo.commons.codec.CodecManager codecManager,
io.vertigo.commons.impl.connectors.redis.RedisConnector redisConnector)
codecManager - redisConnector - public <R,W> WorkItem<R,W> pollWorkItem(String nodeId, String workType)
pollWorkItem in interface WorkersPluginR - resultW - workworkType - Type de tachepublic <R> void putResult(String workId, R result, Throwable error)
putResult in interface WorkersPluginR - resultworkId - WorkIdresult - Result (not null if execution succeeded)error - Error ( not null if execution failed)public void putStart(String workId)
putStart in interface WorkersPluginCopyright © 2017. All Rights Reserved.