package com.ag.topic;

import com.ag.entity.topic.RemqMsgCustom;
import com.ag.util.ResourceUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.concurrent.Executors.newFixedThreadPool;

/**
 * @description: redis频道
 * @author: WangN
 * @create: 2019-10-15
 */
public interface IRedisTopicCtl {

    /**
     * 获取所有频道信息
     * @return
     */
    default String getChannel()  {
        return null;
    }

    /**
     * 发送消息
     * @param
     * @return
     */
    default void send(RemqMsgCustom remqMsgCustom, String channel){
    }

    /**
     * 更新频道信息
     * @return
     */
    default void putTopic(){
    }

    /**
     * 初始化 redis 频道订阅
     */
    default void initRdsChannel(){
    }

    /**
     * 初始化 用户-频道 信息到redis
     */
    default void initChannelToUser(){
    }
}
