All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.com.bancolombia.commons.jms.api.MQRequestReplyBase Maven / Gradle / Ivy

There is a newer version: 2.3.5
Show newest version
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