spring-framework / org.springframework.jms.core / JmsMessageOperations / receive

receive

@Nullable abstract fun receive(destinationName: String): Message<*>

Receive a message from the given destination.

Parameters

destinationName - the name of the target destination

Return
the received message, possibly null if the message could not be received, for example due to a timeout