Class GroupQueueConsumer<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.GroupQueueConsumer<PK,​D>

public class GroupQueueConsumer<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
    GroupQueueConsumer​(java.util.function.Function<io.datarouter.storage.config.Config,​io.datarouter.storage.queue.GroupQueueMessage<PK,​D>> peekFunction, java.util.function.Consumer<io.datarouter.storage.queue.QueueMessageKey> ackConsumer)  
  • Method Summary

    Modifier and Type Method Description
    void ack​(io.datarouter.storage.queue.QueueMessageKey key)  
    io.datarouter.storage.queue.GroupQueueMessage<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

    • GroupQueueConsumer

      public GroupQueueConsumer​(java.util.function.Function<io.datarouter.storage.config.Config,​io.datarouter.storage.queue.GroupQueueMessage<PK,​D>> peekFunction, java.util.function.Consumer<io.datarouter.storage.queue.QueueMessageKey> ackConsumer)
  • Method Details

    • peek

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

      public void ack​(io.datarouter.storage.queue.QueueMessageKey key)