zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package com.codingapi.tm.netty.service.impl;
Z 2
3 import com.alibaba.fastjson.JSONObject;
4 import com.codingapi.tm.config.ConfigReader;
5 import com.codingapi.tm.manager.service.TxManagerService;
6 import com.codingapi.tm.netty.service.IActionService;
7 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.stereotype.Service;
9
10 /**
11  * 心跳包
12  * create by lorne on 2017/11/11
13  */
14 @Service(value = "h")
15 public class ActionHServiceImpl implements IActionService{
16
17
18     @Autowired
19     private ConfigReader configReader;
20
21     @Override
22     public String execute(String channelAddress, String key, JSONObject params ) {
23         return String.valueOf(configReader.getTransactionNettyDelayTime());
24     }
25 }