Class BaseBatchedQueueConsumerConveyor<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>

java.lang.Object
io.datarouter.conveyor.BaseConveyor
io.datarouter.conveyor.queue.BaseBatchedQueueConsumerConveyor<PK,​D>
All Implemented Interfaces:
Conveyor, java.lang.Comparable<Conveyor>, java.lang.Runnable

public abstract class BaseBatchedQueueConsumerConveyor<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
extends BaseConveyor
Drains the queue and stores the data in a buffer. When the buffer hits a set limit it will trigger the processing as a batch. This implementation makes the best effort to process the buffer if the queue gets drained or it has been interrupted.