package io.github.quickmsg.core.cluster;

import io.github.quickmsg.common.config.BootstrapConfig;
import io.github.quickmsg.common.message.ClusterMessage;
import io.github.quickmsg.common.message.HeapMqttMessage;
import io.github.quickmsg.common.cluster.ClusterNode;
import io.github.quickmsg.common.cluster.ClusterRegistry;
import io.github.quickmsg.common.enums.ClusterStatus;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.Collections;
import java.util.List;

/**
 * @author luxurong
 */
public class InJvmClusterRegistry implements ClusterRegistry {


    @Override
    public void registry(BootstrapConfig.ClusterConfig  c) {

    }

    @Override
    public Flux<ClusterMessage> handlerClusterMessage() {
        return Flux.empty();
    }

    @Override
    public Flux<ClusterStatus> clusterEvent() {
        return Flux.empty();
    }

    @Override
    public List<ClusterNode> getClusterNode() {
        return Collections.emptyList();
    }

    @Override
    public Mono<Void> spreadMessage(ClusterMessage clusterMessage) {
        return Mono.empty();
    }

    @Override
    public Mono<Void> shutdown() {
        return Mono.empty();
    }
}
