io.fluxcapacitor.javaclient.publishing.CommandGateway Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Default Java client library for interfacing with Flux Capacitor.
package io.fluxcapacitor.javaclient.publishing;
import io.fluxcapacitor.common.Registration;
import io.fluxcapacitor.common.api.Metadata;
import io.fluxcapacitor.javaclient.common.Message;
import java.util.concurrent.CompletableFuture;
public interface CommandGateway {
void sendAndForget(Message message);
void sendAndForget(Object command);
void sendAndForget(Object payload, Metadata metadata);
CompletableFuture send(Object command);
CompletableFuture send(Object payload, Metadata metadata);
CompletableFuture sendForMessage(Object payload, Metadata metadata);
R sendAndWait(Object command);
R sendAndWait(Object payload, Metadata metadata);
Registration registerLocalHandler(Object handler);
}