Interface QueueStorage<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>

All Superinterfaces:
NodeOps<PK,​D>, QueueStorageReader<PK,​D>, QueueStorageWriter<PK,​D>, StorageWriter<PK,​D>
All Known Subinterfaces:
QueueStorage.PhysicalQueueStorageNode<PK,​D,​F>, QueueStorage.QueueStorageNode<PK,​D,​F>
All Known Implementing Classes:
NoOpQueueNode, PhysicalQueueStorageCounterAdapter, PhysicalQueueStorageSanitizationAdapter, PhysicalQueueStorageTraceAdapter

public interface QueueStorage<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
extends QueueStorageWriter<PK,​D>, QueueStorageReader<PK,​D>
A wrapper class including a variety of poll() methods. Poll lets you consume a message from a queue in one call, rather than having to peek() and ack(). Of course, it can be dangerous to ack the message before successfully processing it, but sometimes that is ok.