當前位置: 首頁>>代碼示例>>Java>>正文


Java ActiveMQConnectionFactory.setWatchTopicAdvisories方法代碼示例

本文整理匯總了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;
}
 
開發者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.setWatchTopicAdvisories方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。