java.lang.Object
io.datarouter.conveyor.queue.QueueConsumer<PK,D>
public class QueueConsumer<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
QueueConsumer (java.util.function.Function<io.datarouter.storage.config.Config,io.datarouter.storage.queue.QueueMessage<PK ,D >> peekFunction,
java.util.function.Consumer<io.datarouter.storage.queue.QueueMessageKey> ackConsumer)
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
void
ack (io.datarouter.storage.queue.QueueMessageKey key)
io.datarouter.storage.queue.QueueMessage<PK ,D >
peek (java.time.Duration timeout)
io.datarouter.storage.queue.QueueMessage<PK ,D >
peek (java.time.Duration timeout,
java.time.Duration visibilityTimeout)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
public QueueConsumer (
java.util.function.Function<io.datarouter.storage.config.Config,io.datarouter.storage.queue.QueueMessage<PK ,D >> peekFunction,
java.util.function.Consumer<io.datarouter.storage.queue.QueueMessageKey> ackConsumer)
Method Details
public io.datarouter.storage.queue.QueueMessage<PK ,D > peek (
java.time.Duration timeout)
public io.datarouter.storage.queue.QueueMessage<PK ,D > peek (
java.time.Duration timeout,
java.time.Duration visibilityTimeout)
public void ack (io.datarouter.storage.queue.QueueMessageKey key)