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

构造方法摘要
MetaqMessage(Message rawMessage, T body)
           
 
方法摘要
 String getAttribute()
           
 T getBody()
          Returns the message body object.It's converted by message body converter.
 byte[] getData()
           
 long getId()
           
 Partition getPartition()
           
 Message getRawMessage()
          Returns the raw metaq message.
 String getTopic()
           
 boolean hasAttribute()
           
 boolean isReadOnly()
           
 void setReadOnly(boolean readOnly)
           
 void setRollbackOnly()
           
 
从类 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.