Oslo.Messaging 中的 Message 处理,messaging


代码结构图如下



  • Target: 封装了消息的信息. 对于message server, target代表了server监听的内容. 对于messge client, target代表了client要发送的目的地
  • AMQPDriverBase / RabbitDriver: 实际负责和消息队列(比如RabbitMQ, QPID)进行交互的驱动. 它负责连接MQ, 发送或者接受消息
  • Listener : 从MQ中不停地抽取消息, 存放到内部的list队列
  • Dispatcher: 解析消息, 调用实际的endpoint / manager的业务函数来处理消息
  • Executor: 负责把Listener和Dispatcher连接起来, 用listener来接受消息, 在用dispatcher来处理消息

这几个对象之间的交互图如下










“Messaging ”与"message" 是什?

Messaging:

报文发送

英英解释:
名词messaging:

1. the sending and processing of e-mail by computer
同义词:electronic messaging

动词message:

1. send a message to
同义词:message

2. send as a message
同义词:message

3. send a message
同义词:message

message: [ 'mesidʒ ]

n. 消息,信息

词形变化:
动词过去式:messaged 过去分词:messaged 现在分词:messaging 第三人称单数:messages

例句与用法:
1. Christ's message was that God loved the world.
耶稣基督的启示就是神爱世人。

2. Did you get the message the meeting has been postponed?
你得没得到通知,会议已经推后了?

3. There is an important message for you from your brother.
你哥哥有个重要的消息要告诉你。

4. Did you deliver my message to my father?
你把我的信息传给我父亲了吗?

5. The message in the newspaper is unabridged.
报纸上的那则消息是没有经过删节的。

英英解释:
名词message:

1. a communication (usually brief) that is written or spoken or signaled

2. what a communication that is about something is about
同义词:content, subject matter, substance

动词message:

1. send a message to

2. send as a message

3. send a message
 

message的翻译

可以的
一般用做信息 不可数
也可以做信条 可数的
 

相关内容