Class BatchedQueueConsumer<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
java.lang.Object
io.datarouter.storage.queue.consumer.BatchedQueueConsumer<PK,D>
public class BatchedQueueConsumer<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionBatchedQueueConsumer(Function<Config, List<QueueMessage<PK, D>>> peekMultiFunction, BiConsumer<Collection<QueueMessageKey>, Config> ackMultiConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidackMulti(Integer limit, Collection<QueueMessageKey> keys) List<QueueMessage<PK,D>>
-
Constructor Details
-
BatchedQueueConsumer
public BatchedQueueConsumer(Function<Config, List<QueueMessage<PK, D>>> peekMultiFunction, BiConsumer<Collection<QueueMessageKey>, Config> ackMultiConsumer)
-
-
Method Details
-
peekMulti
-
ackMulti
-