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, wait
checkpoint
public ParallelStarvationHandler(IRecordStarvationStrategy starved, int worker)
public void onRecordsReceived(io.vertx.core.json.JsonObject metas)
onRecordsReceived
in interface IRecordStarvationStrategy
public IRecordStarvationStrategy.ExpectedBehaviour onStarvation(io.vertx.core.json.JsonObject infos)
onStarvation
in interface IRecordStarvationStrategy
Copyright © 2023. All Rights Reserved.