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

xin.alum.aim.config.ClusterConfig Maven / Gradle / Ivy

There is a newer version: 1.9.6
Show newest version
package xin.alum.aim.config;

import xin.alum.aim.groups.ClusterProperties;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @auther Alum(alum @ live.cn)
 * @date 2021/8/17 19:31
 */
@Data
@Configuration
public class ClusterConfig {

    @Autowired
    private ClusterProperties clusterProperties;

//    /**
//     * 注入集群工厂
//     *
//     * @return
//     */
//    @Bean
//    public ClusterFactory clusterFactory() {
//        System.err.println("注入:clusterFactory--"+clusterProperties.getMode());
//        ClusterFactory factory;
//        switch (clusterProperties.getMode()) {
//            case Redis:
//                factory = new RedisPusher();
//                break;
//            default:
//                factory = null;
//        }
//        return factory;
//    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy