Advanced Configuration
RabbitMQ 团队会不时添加一些新功能,通过在声明时(例如,队列)设置一些参数来启用这些新功能。通常,在绑定程序中通过添加适当的属性来启用此类功能,但这可能不会在当前版本中立即可用。从 3.0.1 版开始,您现在可以将 DeclarableCustomizer
bean 添加到应用程序上下文中,以便在执行声明之前修改 Declarable
(Queue
、Exchange
或 Binding
)。这能让您添加当前未受绑定程序直接支持的参数。
From time to time, the RabbitMQ team add new features that are enabled by setting some argument when declaring, for example, a queue.
Generally, such features are enabled in the binder by adding appropriate properties, but this may not be immediately available in a current version.
Starting with version 3.0.1, you can now add DeclarableCustomizer
bean(s) to the application context to modify a Declarable
(Queue
, Exchange
or Binding
) just before the declaration is performed.
This allows you to add arguments that are not currently directly supported by the binder.