package com.yfd.platform.component.nettyclient;

import com.yfd.platform.config.ParentConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value=20)
public class NettyClientRunner implements CommandLineRunner {
    private static final Logger logger = LoggerFactory.getLogger(NettyClientRunner.class);


    @Autowired
    private ParentConfig parentConfig;

    @Override
    public void run(String... args) throws Exception {
        /**
         * 使用异步注解方式启动netty客户端服务
         */
//        BootNettyClientThread thread = new BootNettyClientThread(parentConfig.getParentIp(),
//                Integer.parseInt(parentConfig.getTcpPort()), parentConfig);
//        thread.start();
    }


}

