public class ClientBeatCheckTaskV2 extends com.alibaba.nacos.common.task.AbstractExecuteTask implements BeatCheckTask, NacosHealthCheckTask
| 构造器和说明 |
|---|
ClientBeatCheckTaskV2(com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient client) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterIntercept()
If one
NacosNamingInterceptor intercept this object, this method will be called. |
void |
doHealthCheck()
Do health check.
|
com.alibaba.nacos.naming.misc.GlobalConfig |
getGlobalConfig() |
String |
getTaskId()
Get task id.
|
void |
passIntercept()
If no
NacosNamingInterceptor intercept this object, this method will be called to execute. |
void |
run() |
String |
taskKey()
Task key.
|
public ClientBeatCheckTaskV2(com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient client)
public com.alibaba.nacos.naming.misc.GlobalConfig getGlobalConfig()
public String taskKey()
BeatCheckTasktaskKey 在接口中 BeatCheckTaskpublic String getTaskId()
NacosHealthCheckTaskgetTaskId 在接口中 NacosHealthCheckTaskpublic void doHealthCheck()
NacosHealthCheckTaskdoHealthCheck 在接口中 NacosHealthCheckTaskpublic void passIntercept()
InterceptableNacosNamingInterceptor intercept this object, this method will be called to execute.passIntercept 在接口中 Interceptablepublic void afterIntercept()
InterceptableNacosNamingInterceptor intercept this object, this method will be called.afterIntercept 在接口中 InterceptableCopyright © 2018–2022 Alibaba Group. All rights reserved.