使用 JSON 格式的管理 (Mgmt) Comm。負責處理完整/格式良好的 Mgmt/JSON 訊息幀並通過通道轉發給任何聽眾。 更多...
公開方法(Public Methods) | |
| JsonComm (IComm commToPtr) | |
| 使用傳入的連接啟動 JSON 通信。 更多... | |
| IMgmtMsgListenerChannels< String > | ChannelListenerJson () |
| IMgmtMsgListenerChannels< MgmtMsg > | ChannelListenerMgmtMsg () |
| void | close () |
| void | Dispose () |
| void | Send (String mgmtMsgToSend) |
| 使用創建對象時傳入的連接發送 JSON mgmtMsgToSend。 | |
| String | SendAndWaitForResponse (String mgmtMsg, int respTimeoutMs) |
| 發送 JSON 訊息 mgmtMsg 並等待 respTimeoutMs 後返回響應。 如果超時後未接收到響應,返回空字串 ""。 | |
靜態公開方法(Static Public Methods) | |
| static String | ReplaceJsonArrayValues (String json) |
保護方法(Protected Methods) | |
| void | Dispose (boolean disposing) |
| void | finalize () throws Throwable |
使用 JSON 格式的管理 (Mgmt) Comm。負責處理完整/格式良好的 Mgmt/JSON 訊息幀並通過通道轉發給任何聽眾。
需要通信連接來發送和接收完整的管理訊息。
此類還使用通信連接發送和接收 JSON 訊息。
注意,此類將會在收到數據時讀取從通信連接接收的所有數據,以便於聆聽和解析完整的 JSON 訊息。