Class RabbitClientConfig
java.lang.Object
org.autumnframework.service.rabbit.client.config.RabbitClientConfig
@Configuration
@EnableRabbit
@Import({org.autumnframework.service.queue.api.QueueApiConfiguration.class,MQJsonConfig.class,org.autumnframework.service.liveness.rabbit.LivenessRabbitConfiguration.class})
@PropertySources(@PropertySource("classpath:service.properties"))
public class RabbitClientConfig
extends Object
- Author:
- Timon Veenstra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistenerDelegation(com.fasterxml.jackson.databind.ObjectMapper objectMapper, List<CrudQueueListener<?, ?>> crudQueueListeners, List<OnQueueCreateListener<?, ?>> onCreateListeners, List<OnQueueUpdateListener<?, ?>> onUpdateListeners, List<OnQueueDeleteListener<?, ?>> onDeleteListeners) org.springframework.amqp.core.DeclarablesproviderBindings(QueueApiProperties queueApiProperties, RabbitMQApiProperties rabbitMQApiProperties)
-
Constructor Details
-
RabbitClientConfig
public RabbitClientConfig()
-
-
Method Details
-
listenerDelegation
@Bean public CrudMessageListenerAndDelegationService listenerDelegation(com.fasterxml.jackson.databind.ObjectMapper objectMapper, List<CrudQueueListener<?, ?>> crudQueueListeners, List<OnQueueCreateListener<?, ?>> onCreateListeners, List<OnQueueUpdateListener<?, ?>> onUpdateListeners, List<OnQueueDeleteListener<?, ?>> onDeleteListeners) - Parameters:
objectMapper-crudQueueListeners-onCreateListeners-onUpdateListeners-onDeleteListeners-- Returns:
-
providerBindings
@Bean public org.springframework.amqp.core.Declarables providerBindings(@Autowired QueueApiProperties queueApiProperties, @Autowired RabbitMQApiProperties rabbitMQApiProperties) - Parameters:
queueApiProperties-rabbitMQApiProperties-- Returns:
-