接口 NacosTraceSubscriber
public interface NacosTraceSubscriber
Nacos trace event subscriber.
- 作者:
- xiweng.yy
-
方法概要
修饰符和类型方法说明default Executorexecutor()It is up to the listener to determine whether the callback is asynchronous or synchronous.getName()Get the plugin name, if the same name has loaded by nacos, the older one will be replaced by new one.voidonEvent(TraceEvent event) Event callback.List<Class<? extends TraceEvent>> Returns which trace events are this subscriber interested in.
-
方法详细资料
-
getName
String getName()Get the plugin name, if the same name has loaded by nacos, the older one will be replaced by new one.- 返回:
- plugin name
-
onEvent
Event callback.- 参数:
event-TraceEvent
-
subscribeTypes
List<Class<? extends TraceEvent>> subscribeTypes()Returns which trace events are this subscriber interested in.- 返回:
- The interested event types.
-
executor
It is up to the listener to determine whether the callback is asynchronous or synchronous.- 返回:
Executor
-