Enum TopicFilterType

    • Enum Constant Detail

      • QUEUE

        public static final TopicFilterType QUEUE
        $queue/ 为前缀的共享订阅是不带群组的共享订阅
      • SHARE

        public static final TopicFilterType SHARE
        $share/{group-name}/ 为前缀的共享订阅是带群组的共享订阅
    • Method Detail

      • values

        public static TopicFilterType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TopicFilterType c : TopicFilterType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TopicFilterType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • match

        public abstract boolean match​(String topicFilter,
                                      String topicName)
        判断 topicFilter 和 topicName 匹配情况
        Parameters:
        topicFilter - topicFilter
        topicName - topicName
        Returns:
        是否匹配
      • getType

        public static TopicFilterType getType​(String topicFilter)
        获取 topicFilter 类型
        Parameters:
        topicFilter - topicFilter
        Returns:
        TopicFilterType