类 RabbitStreamTemplateConfigurer

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

public class RabbitStreamTemplateConfigurer extends Object
Configure RabbitStreamTemplate with sensible defaults.
从以下版本开始:
2.7.0
作者:
Eddú Meléndez
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RabbitStreamTemplateConfigurer

      public RabbitStreamTemplateConfigurer()
  • 方法详细资料

    • 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.
      参数:
      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.
      参数:
      streamMessageConverter - the StreamMessageConverter
    • setProducerCustomizer

      public void setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer)
      Set the ProducerCustomizer instances to use.
      参数:
      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.
      参数:
      template - the RabbitStreamTemplate instance to configure