|
@@ -72,7 +72,10 @@ public class IndexController { |
|
@@ -72,7 +72,10 @@ public class IndexController { |
|
72
|
@ResponseBody
|
72
|
@ResponseBody
|
|
73
|
public BaseResponse<NULLBody> sendStringMsg(@RequestBody StringReqVO stringReqVO){
|
73
|
public BaseResponse<NULLBody> sendStringMsg(@RequestBody StringReqVO stringReqVO){
|
|
74
|
BaseResponse<NULLBody> res = new BaseResponse();
|
74
|
BaseResponse<NULLBody> res = new BaseResponse();
|
|
75
|
- heartbeatClient.sendStringMsg(stringReqVO.getMsg()) ;
|
75
|
+
|
|
|
|
76
|
+ for (int i = 0; i < 100; i++) {
|
|
|
|
77
|
+ heartbeatClient.sendStringMsg(stringReqVO.getMsg()) ;
|
|
|
|
78
|
+ }
|
|
76
|
|
79
|
|
|
77
|
// 利用 actuator 来自增
|
80
|
// 利用 actuator 来自增
|
|
78
|
counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT);
|
81
|
counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT);
|
|
@@ -95,7 +98,9 @@ public class IndexController { |
|
@@ -95,7 +98,9 @@ public class IndexController { |
|
95
|
public BaseResponse<NULLBody> sendProtoBufMsg(@RequestBody GoogleProtocolVO googleProtocolVO){
|
98
|
public BaseResponse<NULLBody> sendProtoBufMsg(@RequestBody GoogleProtocolVO googleProtocolVO){
|
|
96
|
BaseResponse<NULLBody> res = new BaseResponse();
|
99
|
BaseResponse<NULLBody> res = new BaseResponse();
|
|
97
|
|
100
|
|
|
98
|
- heartbeatClient.sendGoogleProtocolMsg(googleProtocolVO) ;
|
101
|
+ for (int i = 0; i < 100; i++) {
|
|
|
|
102
|
+ heartbeatClient.sendGoogleProtocolMsg(googleProtocolVO) ;
|
|
|
|
103
|
+ }
|
|
99
|
|
104
|
|
|
100
|
// 利用 actuator 来自增
|
105
|
// 利用 actuator 来自增
|
|
101
|
counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT);
|
106
|
counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT);
|