类 PushExecutorUdpImpl

  • 所有已实现的接口:
    PushExecutor

    @Component
    public class PushExecutorUdpImpl
    extends java.lang.Object
    implements PushExecutor
    Push execute service for udp.
    作者:
    xiweng.yy
    • 构造器详细资料

      • PushExecutorUdpImpl

        public PushExecutorUdpImpl​(UdpPushService pushService)
    • 方法详细资料

      • replaceServiceInfoName

        private com.alibaba.nacos.api.naming.pojo.ServiceInfo replaceServiceInfoName​(PushDataWrapper originalData,
                                                                                     Subscriber subscriber)
        The reason to replace the name is upd push is used in 1.x client. And 1.x client do not identify the group attribute but only identify name attribute. So for supporting 1.x client, replace it with a new ServiceInfo.

        Why not setName directly? Because the input ServiceInfo may be reused by 2.x push execute. And if set name directly will has some effect for 2.x client.

        参数:
        originalData - original service info
        返回:
        new service info for 1.x
      • handleClusterData

        @Deprecated
        private com.alibaba.nacos.api.naming.pojo.ServiceInfo handleClusterData​(com.alibaba.nacos.api.naming.pojo.ServiceInfo data,
                                                                                Subscriber subscriber)
        已过时。
        Will be removed after client can filter cluster
        For adapt push cluster feature for v1.x.
        参数:
        data - original data
        subscriber - subscriber information
        返回:
        cluster filtered data