当前位置: 首页>>代码示例>>Java>>正文


Java ActiveMQConnectionFactory.setClientIDPrefix方法代码示例

本文整理汇总了Java中org.apache.activemq.ActiveMQConnectionFactory.setClientIDPrefix方法的典型用法代码示例。如果您正苦于以下问题:Java ActiveMQConnectionFactory.setClientIDPrefix方法的具体用法?Java ActiveMQConnectionFactory.setClientIDPrefix怎么用?Java ActiveMQConnectionFactory.setClientIDPrefix使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.activemq.ActiveMQConnectionFactory的用法示例。


在下文中一共展示了ActiveMQConnectionFactory.setClientIDPrefix方法的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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:14,代码来源:AdminJmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:10,代码来源:ClientJmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:8,代码来源:HeartbeatJmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:9,代码来源:DaqJmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:9,代码来源:DaqJmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:8,代码来源:JmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:8,代码来源:JmsConfig.java

示例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;
}
 
开发者ID:c2mon,项目名称:c2mon,代码行数:8,代码来源:JmsConfig.java


注:本文中的org.apache.activemq.ActiveMQConnectionFactory.setClientIDPrefix方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。