Package org.acemq.amqp.api
Class ConsumeContext
java.lang.Object
org.acemq.amqp.api.ConsumeContext
A message about to be handled, as an interceptor sees it.
Read-only, unlike PublishContext. A consume interceptor can observe, refuse, or set
up and tear down surrounding state — a log context, a tenant, a transaction — but it cannot
rewrite the message on its way in. Rewriting an inbound message would mean the handler no
longer sees what the broker delivered, and the difference would show up as a bug in the
handler rather than in the interceptor that caused it.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConsumeContext
- Parameters:
queue- queue the message arrived onmessage- the decoded message
-
-
Method Details