@Component public class WorkConsumerServiceImpl extends Object implements WorkConsumerService
| Constructor and Description |
|---|
WorkConsumerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeWorkUnit()
Consumes a single work unit.
|
long |
getConsumedWorkUnits()
Returns the total number of consumed work units by the engine instance at hand since
the engine's last deployment.
|
public void consumeWorkUnit()
WorkConsumerServiceBlocks for 15 s or until a work unit becomes consumable, if there is currently none.
consumeWorkUnit in interface WorkConsumerServicepublic long getConsumedWorkUnits()
WorkConsumerServicegetConsumedWorkUnits in interface WorkConsumerServiceCopyright © 2018. All rights reserved.