类 SuccessPolarisReporter
java.lang.Object
com.tencent.cloud.rpc.enhancement.AbstractPolarisReporterAdapter
com.tencent.cloud.rpc.enhancement.plugin.reporter.SuccessPolarisReporter
- 所有已实现的接口:
EnhancedPlugin,org.springframework.core.Ordered
public class SuccessPolarisReporter extends AbstractPolarisReporterAdapter implements EnhancedPlugin
Polaris reporter when feign call is successful.
- 作者:
- Haotian Zhang
-
字段概要
从类继承的字段 com.tencent.cloud.rpc.enhancement.AbstractPolarisReporterAdapter
context, reportProperties从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 构造器 说明 SuccessPolarisReporter(RpcEnhancementReporterProperties properties, com.tencent.polaris.client.api.SDKContext context, com.tencent.polaris.api.core.ConsumerAPI consumerAPI) -
方法概要
修饰符和类型 方法 说明 StringgetName()Get name of plugin.intgetOrder()EnhancedPluginTypegetType()Get type of plugin.voidhandlerThrowable(EnhancedPluginContext context, Throwable throwable)Handler throwable fromEnhancedPlugin.run(EnhancedPluginContext).voidrun(EnhancedPluginContext context)Run the plugin.从类继承的方法 com.tencent.cloud.rpc.enhancement.AbstractPolarisReporterAdapter
apply, createInstanceResourceStat, createServiceCallResult, getActiveRuleNameFromRequest, getRetStatusFromRequest
-
构造器详细资料
-
SuccessPolarisReporter
public SuccessPolarisReporter(RpcEnhancementReporterProperties properties, com.tencent.polaris.client.api.SDKContext context, com.tencent.polaris.api.core.ConsumerAPI consumerAPI)
-
-
方法详细资料
-
getName
从接口复制的说明:EnhancedPluginGet name of plugin.- 指定者:
getName在接口中EnhancedPlugin- 返回:
- name
-
getType
从接口复制的说明:EnhancedPluginGet type of plugin.- 指定者:
getType在接口中EnhancedPlugin- 返回:
EnhancedPluginType
-
run
从接口复制的说明:EnhancedPluginRun the plugin.- 指定者:
run在接口中EnhancedPlugin- 参数:
context- context in enhanced feign client.
-
handlerThrowable
从接口复制的说明:EnhancedPluginHandler throwable fromEnhancedPlugin.run(EnhancedPluginContext).- 指定者:
handlerThrowable在接口中EnhancedPlugin- 参数:
context- context in enhanced feign client.throwable- throwable thrown from run method.
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中org.springframework.core.Ordered
-