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

io.fluxcapacitor.javaclient.publishing.QueryGateway Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
package io.fluxcapacitor.javaclient.publishing;

import io.fluxcapacitor.common.Registration;
import io.fluxcapacitor.common.api.Metadata;
import io.fluxcapacitor.common.handling.HandlerConfiguration;
import io.fluxcapacitor.javaclient.common.Message;
import io.fluxcapacitor.javaclient.common.serialization.DeserializingMessage;
import io.fluxcapacitor.javaclient.tracking.handling.HasLocalHandlers;

import java.util.concurrent.CompletableFuture;

public interface QueryGateway extends HasLocalHandlers {

     CompletableFuture send(Object query);

     CompletableFuture send(Object payload, Metadata metadata);

    CompletableFuture sendForMessage(Message message);

     R sendAndWait(Object query);

     R sendAndWait(Object payload, Metadata metadata);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy