co.com.bancolombia.commons.jms.api.MQDomainMessageSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-jms-api Show documentation
Show all versions of commons-jms-api Show documentation
A performant abstraction on top of JMS
package co.com.bancolombia.commons.jms.api;
import jakarta.jms.Destination;
import reactor.core.publisher.Mono;
public interface MQDomainMessageSender {
Mono send(String domain, Destination destination, MQMessageCreator messageCreator);
Mono send(String domain, MQMessageCreator messageCreator);
/**
* You can retrieve the MQMessageSender to avoid queries to Map
*
* @param domain Domain name or connectionFactory bean name
* @return MQMessageSender
*/
MQMessageSender forDomain(String domain);
}