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

org.reactivecommons.async.api.DirectAsyncGateway Maven / Gradle / Ivy

The newest version!
package org.reactivecommons.async.api;

import io.cloudevents.CloudEvent;
import org.reactivecommons.api.domain.Command;
import reactor.core.publisher.Mono;

public interface DirectAsyncGateway {
    public static final String DELAYED = "rc-delay";

     Mono sendCommand(Command command, String targetName);

     Mono sendCommand(Command command, String targetName, long delayMillis);

     Mono sendCommand(Command command, String targetName, String domain);

     Mono sendCommand(Command command, String targetName, long delayMillis, String domain);

    Mono sendCommand(CloudEvent command, String targetName);

    Mono sendCommand(CloudEvent command, String targetName, long delayMillis);

    Mono sendCommand(CloudEvent command, String targetName, String domain);

    Mono sendCommand(CloudEvent command, String targetName, long delayMillis, String domain);

     Mono requestReply(AsyncQuery query, String targetName, Class type);

     Mono requestReply(AsyncQuery query, String targetName, Class type, String domain);

     Mono requestReply(CloudEvent query, String targetName, Class type);

     Mono requestReply(CloudEvent query, String targetName, Class type, String domain);

     Mono reply(T response, From from);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy