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

java.lang.Object
io.datarouter.conveyor.queue.configuration.BaseBatchedQueueConsumerConveyorConfiguration<PK,D>
All Implemented Interfaces:
ConveyorConfiguration

public abstract class BaseBatchedQueueConsumerConveyorConfiguration<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>> extends Object implements ConveyorConfiguration
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.