Refactoring idea: Move the ReceivedStamp and RedeliveryStamp logic from the SendMessageMiddleware into the SendersLocator (or a decorator of it).
This avoids the need of requiring a SendersLocatorInterface::getSenderByAlias method and makes the code cleaner.
Refactoring idea: Move the
ReceivedStampandRedeliveryStamplogic from theSendMessageMiddlewareinto theSendersLocator(or a decorator of it).This avoids the need of requiring a
SendersLocatorInterface::getSenderByAliasmethod and makes the code cleaner.