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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceQueueStorage.PhysicalQueueStorageNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>> static interfaceQueueStorage.QueueStorageNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>> Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter
QueueStorageWriter.PhysicalQueueStorageWriterNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>>, QueueStorageWriter.QueueStorageWriterNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>, D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>> Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter
StorageWriter.StorageWriterNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>> -
Field Summary
FieldsFields inherited from interface io.datarouter.storage.node.op.raw.read.QueueStorageReader
OP_peek, OP_peekMulti, OP_peekUntilEmptyFields inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter
OP_ack, OP_ackMultiFields inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter
OP_put, OP_putMulti -
Method Summary
Methods inherited from interface io.datarouter.storage.node.op.raw.read.QueueStorageReader
peek, peek, peekMulti, peekMulti, peekUntilEmpty, peekUntilEmptyMethods inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter
ack, ack, ackMulti, ackMultiMethods inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter
put, put, putMulti, putMulti
-
Field Details
-
OP_poll
- See Also:
-
OP_pollMulti
- See Also:
-
OP_pollUntilEmpty
- See Also:
-
-
Method Details
-
poll
-
poll
-
pollMulti
-
pollMulti
-
pollUntilEmpty
-
pollUntilEmpty
-