|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface MessageSender
Service API for a bare-bones message server.
A minimal message server only needs to implement the MessageSender interface. Keeping the server API simple makes it easier for implementations to start up message servers.
The MessageSender service is queue or topic specific. So there's no need for a To header if there's no routing involved. In other words, the service URL generally includes the queue or topic identifier, e.g.
http://www.caucho.com/hessian/hessian/message?ejbid=topic-aMore complicated messaging topologies, including configurations with routing mesaging servers, will use the headers to define the final destination. The headers have the same functional purpose as RFC-822 mail headers.
方法摘要 | |
---|---|
void |
send(java.util.HashMap headers,
java.lang.Object message)
Send a message to the server. |
方法详细信息 |
---|
void send(java.util.HashMap headers, java.lang.Object message) throws MessageServiceException
headers
- any message headersmessage
- the message data
MessageServiceException
- if the message cannot be delivered
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |