abstract fun convertAndSend(destinationName: String, payload: Any): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message and send it to the given destination.
destinationName - the name of the target destination
payload - the Object to use as payload
abstract fun convertAndSend(destinationName: String, payload: Any, headers: MutableMap<String, Any>): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers and send it to the given destination.
destinationName - the name of the target destination
payload - the Object to use as payload
headers - headers for the message to send
abstract fun convertAndSend(destinationName: String, payload: Any, postProcessor: MessagePostProcessor): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message, apply the given post processor, and send the resulting message to the given destination.
destinationName - the name of the target destination
payload - the Object to use as payload
postProcessor - the post processor to apply to the message
abstract fun convertAndSend(destinationName: String, payload: Any, @Nullable headers: MutableMap<String, Any>, @Nullable postProcessor: MessagePostProcessor): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers, apply the given post processor, and send the resulting message to the given destination.
destinationName - the name of the target destination
payload - the Object to use as payload