package com.zd.laboratory.socket.service;


import com.zd.laboratory.socket.constant.JXCTPacket;
import com.zd.laboratory.socket.exception.AnalysisException;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;

import java.util.HashMap;
import java.util.Map;

/**
 * 基础的路由数据信息
 */
public interface BaseRouter {

    Map<String, BaseRouter> routerMap = new HashMap<String, BaseRouter>();

    /**
     * 进行数据包的一级路由
     *
     * @param tracketPacket
     */
    String routePacket(JXCTPacket tracketPacket) throws AnalysisException;

}
