I would need to use event-driven mechanism. using ApplicationEventPublisher
. I would want to set a delay for the message before reach to the endpoint that listening to this event. Is there such a way? found https://docs.spring.io/spring-integration/docs/2.0.0.RC1/reference/html/delayer.html but not sure how it should integrate with ApplicationEventPublisher.
Is there a simple way to use spring to achieve the above?