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

io.github.quickmsg.common.cluster.ClusterHandler Maven / Gradle / Ivy

The newest version!
package io.github.quickmsg.common.cluster;

import io.github.quickmsg.common.message.HeapMqttMessage;
import reactor.core.publisher.Mono;

import java.util.List;

/**
 * @author luxurong
 */
public interface ClusterHandler {


    /**
     * 获取集群信息
     *
     * @return {@link ClusterNode}
     */
    List getClusterInfo();


    /**
     * 传播集群消息
     *
     * @param heapMqttMessage 集群
     * @return {@link Mono}
     */
    Mono spreadGossip(HeapMqttMessage heapMqttMessage);


    /**
     * 传播集群消息
     *
     * @param heapMqttMessage 集群
     * @return {@link Mono}
     */
    Mono send(HeapMqttMessage heapMqttMessage);


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy