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.conveyor.queue.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 java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    BatchedQueueConsumer​(java.util.function.Function<io.datarouter.storage.config.Config,​io.datarouter.storage.queue.QueueMessage<PK,​D>> peekFunction, java.util.function.Consumer<java.util.Collection<io.datarouter.storage.queue.QueueMessageKey>> ackMultiConsumer)  
  • Method Summary

    Modifier and Type Method Description
    void ackMulti​(java.util.Collection<io.datarouter.storage.queue.QueueMessageKey> keys)  
    io.datarouter.storage.queue.QueueMessage<PK,​D> peek​(java.time.Duration timeout)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BatchedQueueConsumer

      public BatchedQueueConsumer​(java.util.function.Function<io.datarouter.storage.config.Config,​io.datarouter.storage.queue.QueueMessage<PK,​D>> peekFunction, java.util.function.Consumer<java.util.Collection<io.datarouter.storage.queue.QueueMessageKey>> ackMultiConsumer)
  • Method Details

    • peek

      public io.datarouter.storage.queue.QueueMessage<PK,​D> peek​(java.time.Duration timeout)
    • ackMulti

      public void ackMulti​(java.util.Collection<io.datarouter.storage.queue.QueueMessageKey> keys)