Class AnnotationQueueConsumer
java.lang.Object
org.j7m.middleware.examples.annotation.AnnotationQueueConsumer
Annotation-first durable queue consumer example.
The queue-related annotations are descriptor metadata. The injected
DurableQueue remains the public API that enforces leases, retry,
dead-letter, outbox, and inbox semantics. The example avoids exposing queue
payload bytes in status or audit output.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationQueueConsumer(org.j7m.middleware.api.messaging.DurableQueue queue, AnnotationExampleAudit audit) Creates a consumer with a public durable queue capability. -
Method Summary
-
Constructor Details
-
AnnotationQueueConsumer
@Inject public AnnotationQueueConsumer(@J7mResource("annotation-events") org.j7m.middleware.api.messaging.DurableQueue queue, AnnotationExampleAudit audit) Creates a consumer with a public durable queue capability.- Parameters:
queue- injected durable queueaudit- safe audit collector
-
-
Method Details
-
consume
-
deadLetter
-