com.turbospaces.gcp.pubsub.producer.PubsubPublisher Maven / Gradle / Ivy
The newest version!
package com.turbospaces.gcp.pubsub.producer;
import java.util.concurrent.CompletableFuture;
import java.util.function.BiConsumer;
import com.google.pubsub.v1.PubsubMessage;
import com.turbospaces.rpc.QueueOutcomePublisher;
public interface PubsubPublisher extends QueueOutcomePublisher {
CompletableFuture publish(String topic, PubsubMessage record);
CompletableFuture publish(String topic, PubsubMessage record, BiConsumer callback);
}