public class ParallelStarvationHandler extends java.lang.Object implements IRecordStarvationStrategy
IRecordStarvationStrategy "workers" for dealing with
starvation in multiple consumers.
We will trigger the parent IRecordStarvationStrategy only if all
workers starved in the last second.IRecordStarvationStrategy.ExpectedBehaviour| Constructor and Description |
|---|
ParallelStarvationHandler(IRecordStarvationStrategy starved,
int worker) |
| Modifier and Type | Method and Description |
|---|---|
void |
onRecordsReceived(io.vertx.core.json.JsonObject metas) |
IRecordStarvationStrategy.ExpectedBehaviour |
onStarvation(io.vertx.core.json.JsonObject infos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckpointpublic ParallelStarvationHandler(IRecordStarvationStrategy starved, int worker)
public void onRecordsReceived(io.vertx.core.json.JsonObject metas)
onRecordsReceived in interface IRecordStarvationStrategypublic IRecordStarvationStrategy.ExpectedBehaviour onStarvation(io.vertx.core.json.JsonObject infos)
onStarvation in interface IRecordStarvationStrategyCopyright © 2024. All Rights Reserved.