spring-framework / org.springframework.messaging.core / GenericMessagingTemplate / setThrowExceptionOnLateReply

setThrowExceptionOnLateReply

open fun setThrowExceptionOnLateReply(throwExceptionOnLateReply: Boolean): Unit

Whether the thread sending a reply should have an exception raised if the receiving thread isn't going to receive the reply either because it timed out, or because it already received a reply, or because it got an exception while sending the request message.

The default value is false in which case only a WARN message is logged. If set to true a MessageDeliveryException is raised in addition to the log message.

Parameters

throwExceptionOnLateReply - whether to throw an exception or not