接口 NacosTraceSubscriber


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

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      default java.util.concurrent.Executor executor()
      It is up to the listener to determine whether the callback is asynchronous or synchronous.
      java.lang.String getName()
      Get the plugin name, if the same name has loaded by nacos, the older one will be replaced by new one.
      void onEvent​(com.alibaba.nacos.common.trace.event.TraceEvent event)
      Event callback.
      java.util.List<java.lang.Class<? extends com.alibaba.nacos.common.trace.event.TraceEvent>> subscribeTypes()
      Returns which trace events are this subscriber interested in.
    • 方法详细资料

      • getName

        java.lang.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​(com.alibaba.nacos.common.trace.event.TraceEvent event)
        Event callback.
        参数:
        event - TraceEvent
      • subscribeTypes

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

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