新增自定義客戶端連線屬性
CachingConnectionFactory 現在允許您訪問底層連線工廠,以便例如設定自定義客戶端屬性。以下示例展示瞭如何實現:
connectionFactory.getRabbitConnectionFactory().getClientProperties().put("thing1", "thing2");
這些屬性在 RabbitMQ 管理介面中檢視連線時會顯示。
CachingConnectionFactory 現在允許您訪問底層連線工廠,以便例如設定自定義客戶端屬性。以下示例展示瞭如何實現:
connectionFactory.getRabbitConnectionFactory().getClientProperties().put("thing1", "thing2");
這些屬性在 RabbitMQ 管理介面中檢視連線時會顯示。