如何監控與 Broker 的連線
常見問題 > 使用 Apache ActiveMQ Classic > 如何監控與 Broker 的連線
如何監控與 Broker 的連線
您可以使用 ActiveMQConnection 上的 addTransportListener() 方法來監控與 Broker 的連線狀態。
此方法會接收一個 TransportListener,當連線建立或斷開時會收到通知。它還允許您使用容錯轉移傳輸,但仍然可以知道連線的狀態。
常見問題 > 使用 Apache ActiveMQ Classic > 如何監控與 Broker 的連線
您可以使用 ActiveMQConnection 上的 addTransportListener() 方法來監控與 Broker 的連線狀態。
此方法會接收一個 TransportListener,當連線建立或斷開時會收到通知。它還允許您使用容錯轉移傳輸,但仍然可以知道連線的狀態。
Apache、ActiveMQ、Apache ActiveMQ、Apache 羽毛標誌和 Apache ActiveMQ 項目標誌均為 The Apache Software Foundation 的商標。 版權所有 © 2024, The Apache Software Foundation。 根據 Apache License 2.0 授權。