co.com.bancolombia.commons.jms.api.MQRequestReplyBase 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 co.com.bancolombia.commons.jms.api.exceptions.InvalidUsageException;
import jakarta.jms.Destination;
import reactor.core.publisher.Mono;
import java.time.Duration;
public interface MQRequestReplyBase {
Mono requestReply(String message);
Mono requestReply(String message, Duration timeout);
Mono requestReply(MQMessageCreator messageCreator);
Mono requestReply(MQMessageCreator messageCreator, Duration timeout);
default Mono requestReply(String message, Destination request, Destination reply, Duration timeout) {
return Mono.error(() -> new InvalidUsageException("This method is not supported"));
} // For fixed queues only
default Mono requestReply(MQMessageCreator messageCreator, Destination request, Destination reply, Duration timeout) {
return Mono.error(() -> new InvalidUsageException("This method is not supported"));
} // For fixed queues only
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy