本文整理汇总了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;
}
示例2: eventBusExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange eventBusExchange() {
return new FanoutExchange(exchangeName, true, false);
}
示例3: rabbitAdmin
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Autowired
void rabbitAdmin(AmqpAdmin admin, FanoutExchange eventBusExchange) {
admin.declareExchange(eventBusExchange);
}
示例4: eventBusExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange eventBusExchange() {
return new FanoutExchange(exchangeName, true, false);
}
示例5: fanoutExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
/**
* 客户端直接发送消息到该exchange
* @return
*/
@Bean
public FanoutExchange fanoutExchange() {
return new FanoutExchange(Constant.EXCHANGE);
}
示例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());
}
示例7: fileExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public FanoutExchange fileExchange() {
return new FanoutExchange(fileExchange);
}
示例8: resultExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public FanoutExchange resultExchange() {
return new FanoutExchange(resultExchange);
}
示例9: bindingFile
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public Binding bindingFile(Queue fileQueue, FanoutExchange fileExchange) {
return BindingBuilder
.bind(fileQueue)
.to(fileExchange);
}
示例10: bindingResult
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public Binding bindingResult(Queue resultQueue, FanoutExchange resultExchange) {
return BindingBuilder
.bind(resultQueue)
.to(resultExchange);
}
示例11: eventExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
Exchange eventExchange() {
return new FanoutExchange(properties.getAmqp().getExchange().getEvent());
}
示例12: replyToExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
FanoutExchange replyToExchange() {
return new FanoutExchange(REPLY_TO_EXCHANGE, false, true);
}
示例13: testExchange
import org.springframework.amqp.core.FanoutExchange; //导入依赖的package包/类
@Bean
public AbstractExchange testExchange() {
return new FanoutExchange(rabbitExchangeName, isRabbitDurable, isRabbitAutoDelete);
}
示例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);
}
示例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);
}