We support destination wildcards to provide easy support for federated name hierarchies. This concept has been popular in financial market data for some time as a way of organizing events (such as price changes) into hierarchies and to use wildcards for easy subscription of the range of information you're interested in. 我们支持目标通配符,以便为联邦名称层次结构提供简单的支持。这一概念在金融市场数据中已经流行了一段时间,作为一种将事件(比如价格变化)组织到层次结构中的方法,并使用通配符来轻松订阅您感兴趣的信息范围。 For example imagine you are sending price messages from a stock exchange feed. You might use some kind of destination such as 例如,假设您正在从一个股票交换提要发送价格消息。你可能会使用一些目的地,比如。
A subscriber could then use exact destinations to subscribe to exactly the prices it requires. Or it could use wildcards to define hierarchical pattern matches to the destinations to subscribe from. 然后,订阅者可以使用精确的目的地订阅所需的价格。或者,它可以使用通配符定义层次模式匹配到要订阅的目的地。 Wildcards supported支持通配符We support the following wildcards which are fairly standard practice; wildcards are not part of the JMS specification so are custom enhancements. 我们支持以下的通配符,这是相当标准的做法;通配符不是JMS规范的一部分,因此是自定义增强。
For example using the example above, these subscriptions are possible 例如,使用上面的例子,这些订阅是可能的。
Note: Don't specify any string after '>' on your wildcard expression, it will be ignored. E.g. using a wildcard 注意:不要在通配符表达式上指定“>”之后的任何字符串,它将被忽略。使用通配符价格。>。IBM也将在纳斯达克(nasdaq)上市。使用“>”实际上匹配所有的内容,直到目标名称的末尾。 Custom path separator自定义路径分隔符As of version 5.5.0 we support plugin that allows clients to use customer path separator. So instead of 在5.5.0版本中,我们支持允许客户端使用客户路径分隔符的插件。而不是
FOO.BAR。* you can use 您可以使用
FOO / BAR / * To 来 <plugins> ..... <destinationPathSeparatorPlugin/> </plugins> Please note that you should add this plugin as last if you want it to work properly with other plugins (such as security for example). 请注意,如果您希望它与其他插件(例如安全性)正常工作,您应该将这个插件添加到最后。 A default path separator this plugin will use is 这个插件将使用的默认路径分隔符是/。您可以使用pathSeparator属性进一步定制它。 |