接口 NacosTraceSubscriber


public interface NacosTraceSubscriber
Nacos trace event subscriber.
作者:
xiweng.yy
  • 方法概要

    修饰符和类型
    方法
    说明
    default Executor
    It is up to the listener to determine whether the callback is asynchronous or synchronous.
    Get the plugin name, if the same name has loaded by nacos, the older one will be replaced by new one.
    void
    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

      void onEvent(TraceEvent event)
      Event callback.
      参数:
      event - TraceEvent
    • subscribeTypes

      List<Class<? extends TraceEvent>> subscribeTypes()
      Returns which trace events are this subscriber interested in.
      返回:
      The interested event types.
    • executor

      default Executor executor()
      It is up to the listener to determine whether the callback is asynchronous or synchronous.
      返回:
      Executor