济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
679 B

package com.zc.websocket.handler;
/**
* Session 外部交互接口
* @author Athena-xiepufeng
*/
public interface WebsocketEvent
{
/**
* 解密tokenSN
* 注意:tokenSN 需要解密必须要重写该方法
* @param tokenSN
* @return
*/
default String decryptToken(String tokenSN)
{
return null;
}
/**
* 判断 TokenSN 是否存在
* @return
*/
boolean isTokenSNExist(String tokenSN);
/**
* 心跳事件
* @param tokenSN
*/
void heartbeatEvent(String tokenSN);
/**
* 通道关闭事件
* @param tokenSN
*/
void channelRemovedEvent(String tokenSN);
}