Message model with message proxy function, and message processing method
A message model with a message proxy function comprises a publisher unit, a message transmission layer and a subscriber unit, wherein the publisher unit is used for publishing and producing messages and publishing the messages to the message transmission layer; the message transmission layer is used...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A message model with a message proxy function comprises a publisher unit, a message transmission layer and a subscriber unit, wherein the publisher unit is used for publishing and producing messages and publishing the messages to the message transmission layer; the message transmission layer is used for transmitting and managing the message published by the publisher unit; and the subscriber unit is used for subscribing messages, agenting the messages, receiving the messages and responding to the messages. The invention further provides a message processing method. Communication between the thread and the message model is completed by adding the message agent, a message processing function does not need to be modified, thread scrambling and deadlock are avoided, meanwhile, codes are simplified, and the real-time performance of the system is guaranteed.
一种具有消息代理功能的消息模型,包括,发布者单元、消息传输层,以及订阅者单元,其中,所述发布者单元,用于发布和生产消息,将消息发布到所述消息传输层;所述消息传输层,用于传输和管理所述发布者单元发布的消息;所述订阅者单元,用于订阅消息、消息代理、接收消息和响应消息。本发明还提供一种消息处理方法,通过添加消息代理完成线程 |
---|