本文整理汇总了Java中org.apache.activemq.ActiveMQConnectionFactory.setWatchTopicAdvisories方法的典型用法代码示例。如果您正苦于以下问题:Java ActiveMQConnectionFactory.setWatchTopicAdvisories方法的具体用法?Java ActiveMQConnectionFactory.setWatchTopicAdvisories怎么用?Java ActiveMQConnectionFactory.setWatchTopicAdvisories使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.activemq.ActiveMQConnectionFactory
的用法示例。
在下文中一共展示了ActiveMQConnectionFactory.setWatchTopicAdvisories方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: adminActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory adminActiveMQConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-CLIENT");
connectionFactory.setWatchTopicAdvisories(false);
ActiveMQPrefetchPolicy prefetchPolicy = new ActiveMQPrefetchPolicy();
prefetchPolicy.setQueuePrefetch(0);
connectionFactory.setPrefetchPolicy(prefetchPolicy);
return connectionFactory;
}
示例2: clientActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory clientActiveMQConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-CLIENT");
connectionFactory.setTrustAllPackages(true);
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例3: heartbeatConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory heartbeatConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
factory.setClientIDPrefix("C2MON-SERVER-HEARTBEAT");
factory.setWatchTopicAdvisories(false);
return factory;
}
示例4: daqInConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory daqInConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-DAQ-IN");
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例5: daqOutActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory daqOutActiveMQConnectionFactory() {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
connectionFactory.setClientIDPrefix("C2MON-DAQ-OUT");
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例6: activeMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory activeMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
factory.setClientIDPrefix("C2MON-DAQ-" + properties.getName());
factory.setWatchTopicAdvisories(false);
return factory;
}
示例7: filterActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory filterActiveMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getFilter().getJms().getUrl());
factory.setClientIDPrefix("C2MON_DAQ_FILTER");
factory.setWatchTopicAdvisories(false);
return factory;
}
示例8: secondActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //导入方法依赖的package包/类
@Bean
public ActiveMQConnectionFactory secondActiveMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getSecondaryUrl());
factory.setClientIDPrefix("C2MON-DAQ-" + properties.getName());
factory.setWatchTopicAdvisories(false);
return factory;
}