pull
you are on your own
PubSubMessageSource
subscribe
semantics
ExecutorService
-backed PubSubTemplate#pullAndAck()
wrapper. This is not something new for me. My previous frustrations with Spring's Pub/Sub integration has led me to develop reactor-pubsub. reactor-pubsub
's experience is like a fresh breeze compared to all this madness. Don't get me wrong, I am not pointing any fingers. Spring Integration is a huge project and trying to do everything that is possible to do. Though this generalist approach comes with the cost of sometimes missing very fundamental and simple needs.
subscribe()
doesn't return for us a batch of messages
pull
from Spring Integration channel adapter perspective...
errorChannel
abstraction which could be used for publishing into the mentioned DLQ.
ErrorMessageStrategy
to let to build a specific error message which could be used to produce some target protocol even for a DLQ.
errorChannel
should be some how involved here if you don't want to let end-user to do something else before publishing elsewhere