com.taobao.metamorphosis
类 MessageAccessor
java.lang.Object
com.taobao.metamorphosis.MessageAccessor
public class MessageAccessor
- extends Object
为了访问message中包级别的方法提供的辅助类
- 作者:
- boyan
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageAccessor
public MessageAccessor()
setId
public static void setId(Message message,
long id)
setFlag
public static void setFlag(Message message,
int flag)
isRollbackOnly
public static boolean isRollbackOnly(Message message)
getFlag
public static int getFlag(Message message)
setPartition
public static void setPartition(Message message,
Partition partition)
Copyright © 2010–2013. All rights reserved.