public static class BlockingConfig.RabbitMqConfig extends Object
| Constructor and Description |
|---|
RabbitMqConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.amqp.rabbit.AsyncRabbitTemplate |
asyncRabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory,
org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate) |
org.springframework.amqp.rabbit.connection.ConnectionFactory |
connectionFactory() |
org.springframework.amqp.support.converter.MessageConverter |
jsonMessageConverter()
Returns a
MessageConverter configured to be able to parse Protobuf message and json message. |
org.springframework.amqp.rabbit.core.RabbitAdmin |
rabbitAdmin(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory) |
org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory |
rabbitListenerContainerFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Returns a
RabbitListenerContainerFactory configured to have custom message converter jsonMessageConverter(). |
org.springframework.amqp.rabbit.core.RabbitTemplate |
rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory) |
@Bean public org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory()
@Bean public org.springframework.amqp.rabbit.core.RabbitAdmin rabbitAdmin(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
@Bean public org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory rabbitListenerContainerFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
RabbitListenerContainerFactory configured to have custom message converter jsonMessageConverter(). This bean declaration is necessary for converting incoming message.@Bean public org.springframework.amqp.support.converter.MessageConverter jsonMessageConverter()
MessageConverter configured to be able to parse Protobuf message and json message.@Bean public org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
@Bean
public org.springframework.amqp.rabbit.AsyncRabbitTemplate asyncRabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory,
org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
Copyright © 2018 BitSensor. All rights reserved.