统计方法耗时

This commit is contained in:
Guoqs
2024-11-21 19:01:40 +08:00
parent 1c42f253d0
commit 34b096b2fb
4 changed files with 18 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
package com.jsowell.netty.handler.yunkuaichongV2;
import com.google.common.primitives.Bytes;
import com.jsowell.common.annotation.CostTime;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
@@ -19,6 +20,7 @@ public interface AbstractYkcHandlerV2 {
String REQUEST_PREFIX = "Request_";
byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel);
/**

View File

@@ -1,6 +1,7 @@
package com.jsowell.netty.handler.yunkuaichongV2;
import com.google.common.primitives.Bytes;
import com.jsowell.common.annotation.CostTime;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
@@ -35,7 +36,7 @@ public class BillingTemplateValidateRequestHandlerV2 implements AbstractYkcHandl
// public void afterPropertiesSet() throws Exception {
// YKCOperateFactory.register(type, this);
// }
@CostTime
@Override
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel) {
// log.info("[===执行计费模板验证请求逻辑===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.toString());