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

dev.soffa.foundation.spring.service.NoopPubSubClient Maven / Gradle / Ivy

There is a newer version: 0.17.31
Show newest version
package dev.soffa.foundation.spring.service;

import dev.soffa.foundation.message.Message;
import dev.soffa.foundation.message.pubsub.PubSubClient;
import org.checkerframework.checker.nullness.qual.NonNull;

import java.util.concurrent.CompletableFuture;

public class NoopPubSubClient implements PubSubClient {


    @Override
    public  CompletableFuture request(@NonNull String subject, Message message, Class returnType) {
        return null;
    }

    @Override
    public void publish(@NonNull String subject, Message message) {
        // Nothing to do
    }

    @Override
    public void broadcast(@NonNull String target, Message message) {
        // Nothing to do
    }

    @Override
    public void broadcast(Message message) {
        // Nothing to do
    }

    @Override
    public void addBroadcastChannel(String value) {
        // Nothing to do
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy