Skip to content

i can't find anything about callback after acked. why there's no before and after method in MessageListener? #1338

Closed
@ltbyun

Description

@ltbyun

Affects Version(s): <Spring AMQP version>
all

Enhancement

sometimes we used some state in memory map. needs to get it in listener#onMessage, and remove it after acked.
but now i can only remove it in onMessage, if the method exits and ack failed, the state lost.
next time, the same message comes to onMessage, but the state is gone.
so, i was wondering why there's no interceptor like before and after method in MessageListener, then we can do some inilialize before invoke onMessage and release some resources after acked ok or not.

MessagePostProcessor seems to be act as before interceptor, what about create a new MessageAckProcessor?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions