com.taobao.metamorphosis.client.extension.spring
类 MetaqMessage<T>
java.lang.Object
com.taobao.metamorphosis.client.extension.spring.MetaqMessage<T>
public class MetaqMessage<T>
- extends Object
a MetaQ message wrapper with message body object.
- 作者:
- dennis
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaqMessage
public MetaqMessage(Message rawMessage,
T body)
getRawMessage
public Message getRawMessage()
- Returns the raw metaq message.
- 返回:
setRollbackOnly
public void setRollbackOnly()
isReadOnly
public boolean isReadOnly()
setReadOnly
public void setReadOnly(boolean readOnly)
hasAttribute
public boolean hasAttribute()
getId
public long getId()
getAttribute
public String getAttribute()
getTopic
public String getTopic()
getData
public byte[] getData()
getPartition
public Partition getPartition()
getBody
public T getBody()
- Returns the message body object.It's converted by message body converter.
- 返回:
Copyright © 2010–2013. All rights reserved.