mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 02:19:56 +08:00
protocolSession的缓存改为同步caffeine,因为没有IO操作
This commit is contained in:
@@ -121,10 +121,10 @@ public class AbstractYunKuaiChongCmdExe {
|
||||
}
|
||||
|
||||
protected void encodeAndWriteFlush(YunKuaiChongV150DownlinkCmdEnum downlinkCmd,
|
||||
int seqNo,
|
||||
int encryptionFlag,
|
||||
ByteBuf msgBody,
|
||||
TcpSession tcpSession) {
|
||||
int seqNo,
|
||||
int encryptionFlag,
|
||||
ByteBuf msgBody,
|
||||
TcpSession tcpSession) {
|
||||
|
||||
byte[] encode = encode(downlinkCmd, seqNo, encryptionFlag, msgBody);
|
||||
|
||||
@@ -132,8 +132,8 @@ public class AbstractYunKuaiChongCmdExe {
|
||||
}
|
||||
|
||||
protected void encodeAndWriteFlush(YunKuaiChongV150DownlinkCmdEnum downlinkCmd,
|
||||
ByteBuf msgBody,
|
||||
TcpSession tcpSession) {
|
||||
ByteBuf msgBody,
|
||||
TcpSession tcpSession) {
|
||||
|
||||
byte[] encode = encode(downlinkCmd,
|
||||
tcpSession.nextSeqNo(SequenceNumberLength.SHORT),
|
||||
|
||||
@@ -160,7 +160,7 @@ public class YunKuaiChongV15ProtocolMessageProcessor extends ProtocolMessageProc
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downlinkHandle(SessionToHandlerMsg sessionToHandlerMsg) throws Exception {
|
||||
public void downlinkHandle(SessionToHandlerMsg sessionToHandlerMsg) {
|
||||
TcpSession session = (TcpSession) sessionToHandlerMsg.session();
|
||||
|
||||
DownlinkRestMessage protocolDownlinkMsg = sessionToHandlerMsg.downlinkMsg();
|
||||
|
||||
Reference in New Issue
Block a user