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


Java FanoutExchange类代码示例

本文整理汇总了Java中org.springframework.amqp.core.FanoutExchange的典型用法代码示例。如果您正苦于以下问题:Java FanoutExchange类的具体用法?Java FanoutExchange怎么用?Java FanoutExchange使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FanoutExchange类属于org.springframework.amqp.core包,在下文中一共展示了FanoutExchange类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: rabbitAdmin

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
@Required
RabbitAdmin rabbitAdmin(ConnectionFactory connectionFactory, FanoutExchange fanoutExchange, Queue eventStream, Binding binding) {
    RabbitAdmin admin = new RabbitAdmin(connectionFactory);
    admin.setAutoStartup(true);
    admin.declareExchange(fanoutExchange);
    admin.declareQueue(eventStream);
    admin.declareBinding(binding);
    return admin;
}
 
开发者ID:benwilcock,项目名称:cf-cqrs-microservice-sampler,代码行数:11,代码来源:AxonConfiguration.java

示例2: eventBusExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange eventBusExchange() {
    return new FanoutExchange(exchangeName, true, false);
}
 
开发者ID:weechang,项目名称:Taroco,代码行数:5,代码来源:RabbitConfiguration.java

示例3: rabbitAdmin

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Autowired
void rabbitAdmin(AmqpAdmin admin, FanoutExchange eventBusExchange) {
    admin.declareExchange(eventBusExchange);
}
 
开发者ID:weechang,项目名称:Taroco,代码行数:5,代码来源:RabbitConfiguration.java

示例4: eventBusExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange eventBusExchange() {
  return new FanoutExchange(exchangeName, true, false);
}
 
开发者ID:drm317,项目名称:cloud-native-reference,代码行数:5,代码来源:RabbitConfiguration.java

示例5: fanoutExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
/**
 * 客户端直接发送消息到该exchange
 * @return
 */
@Bean
public FanoutExchange fanoutExchange() {
    return new FanoutExchange(Constant.EXCHANGE);
}
 
开发者ID:SnackMen,项目名称:DanmuChat,代码行数:9,代码来源:RabbitConfig.java

示例6: QueueBinding

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
public QueueBinding(FanoutExchange exchange, Queue queue) {
    super(queue.getName(), DestinationType.QUEUE, exchange.getName(), null, Collections.<String, Object>emptyMap());
}
 
开发者ID:lodsve,项目名称:lodsve-framework,代码行数:4,代码来源:QueueBinding.java

示例7: fileExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public FanoutExchange fileExchange() {
    return new FanoutExchange(fileExchange);
}
 
开发者ID:dvoraka,项目名称:av-service,代码行数:5,代码来源:EnvironmentConfiguratorConfig.java

示例8: resultExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public FanoutExchange resultExchange() {
    return new FanoutExchange(resultExchange);
}
 
开发者ID:dvoraka,项目名称:av-service,代码行数:5,代码来源:EnvironmentConfiguratorConfig.java

示例9: bindingFile

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public Binding bindingFile(Queue fileQueue, FanoutExchange fileExchange) {
    return BindingBuilder
            .bind(fileQueue)
            .to(fileExchange);
}
 
开发者ID:dvoraka,项目名称:av-service,代码行数:7,代码来源:EnvironmentConfiguratorConfig.java

示例10: bindingResult

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public Binding bindingResult(Queue resultQueue, FanoutExchange resultExchange) {
    return BindingBuilder
            .bind(resultQueue)
            .to(resultExchange);
}
 
开发者ID:dvoraka,项目名称:av-service,代码行数:7,代码来源:EnvironmentConfiguratorConfig.java

示例11: eventExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
Exchange eventExchange() {
  return new FanoutExchange(properties.getAmqp().getExchange().getEvent());
}
 
开发者ID:holisticon,项目名称:camunda-bpm-cloud,代码行数:5,代码来源:CamundaCloudAmqpAutoConfiguration.java

示例12: replyToExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange replyToExchange() {
    return new FanoutExchange(REPLY_TO_EXCHANGE, false, true);
}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:5,代码来源:DmfTestConfiguration.java

示例13: testExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public AbstractExchange testExchange() {
    return new FanoutExchange(rabbitExchangeName, isRabbitDurable, isRabbitAutoDelete);
}
 
开发者ID:sshcherbakov,项目名称:cf-service-tester,代码行数:5,代码来源:RabbitConfig.java

示例14: exchangeQueueToConnector

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
/**
 * Creates the receiver exchange for sending messages to update server.
 *
 * @return the exchange
 */
@Bean
FanoutExchange exchangeQueueToConnector() {
    return new FanoutExchange(amqpProperties.getSenderForSpExchange(), false, true);
}
 
开发者ID:eclipse,项目名称:hawkbit-examples,代码行数:10,代码来源:AmqpConfiguration.java

示例15: dmfSenderExchange

import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
/**
 * Create DMF exchange.
 *
 * @return the fanout exchange
 */
@Bean
public FanoutExchange dmfSenderExchange() {
    return new FanoutExchange(AmqpSettings.DMF_EXCHANGE);
}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:10,代码来源:AmqpConfiguration.java


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