类 com.taobao.metamorphosis.client.extension.spring.MessageBuilder
的使用

使用 MessageBuilder 的软件包
com.taobao.metamorphosis.client.extension.spring   
 

com.taobao.metamorphosis.client.extension.springMessageBuilder 的使用
 

返回 MessageBuildercom.taobao.metamorphosis.client.extension.spring 中的方法
 MessageBuilder MessageBuilder.withAttribute(String attr)
          Configure message attribute
 MessageBuilder MessageBuilder.withBody(Object obj)
          Configure message body object if the payload byte array is not exists.
 MessageBuilder MessageBuilder.withPayload(byte[] payload)
          Configure message payload if the message body object is not exists.
static MessageBuilder MessageBuilder.withTopic(String topic)
           
 

参数类型为 MessageBuildercom.taobao.metamorphosis.client.extension.spring 中的方法
 SendResult MetaqTemplate.send(MessageBuilder builder)
          Send message built by message builder.Returns the sent result.
 SendResult MetaqTemplate.send(MessageBuilder builder, long timeout, TimeUnit unit)
          Send message built by message builder.Returns the sent result.
 void MetaqTemplate.send(MessageBuilder builder, SendMessageCallback cb)
          Send message asynchronously with callback.
 void MetaqTemplate.send(MessageBuilder builder, SendMessageCallback cb, long timeout, TimeUnit unit)
          Send message asynchronously with callback.
 



Copyright © 2010–2013. All rights reserved.