Class RabbitStreamTemplateConfigurer

java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitStreamTemplateConfigurer

public class RabbitStreamTemplateConfigurer extends Object
Configure RabbitStreamTemplate with sensible defaults.
Since:
2.7.0
Author:
EddĂș MelĂ©ndez
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template)
    Configure the specified RabbitStreamTemplate.
    void
    setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
    Set the MessageConverter to use or null if the out-of-the-box converter should be used.
    void
    setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer)
    Set the ProducerCustomizer instances to use.
    void
    setStreamMessageConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter)
    Set the StreamMessageConverter to use or null if the out-of-the-box stream message converter should be used.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RabbitStreamTemplateConfigurer

      public RabbitStreamTemplateConfigurer()
  • Method Details

    • setMessageConverter

      public void setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
      Set the MessageConverter to use or null if the out-of-the-box converter should be used.
      Parameters:
      messageConverter - the MessageConverter
    • setStreamMessageConverter

      public void setStreamMessageConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter)
      Set the StreamMessageConverter to use or null if the out-of-the-box stream message converter should be used.
      Parameters:
      streamMessageConverter - the StreamMessageConverter
    • setProducerCustomizer

      public void setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer)
      Set the ProducerCustomizer instances to use.
      Parameters:
      producerCustomizer - the producer customizer
    • configure

      public void configure(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template)
      Configure the specified RabbitStreamTemplate. The template can be further tuned and default settings can be overridden.
      Parameters:
      template - the RabbitStreamTemplate instance to configure