com.taobao.metamorphosis.server.transaction.store
类 JournalTransactionStore.AddMsgLocation
java.lang.Object
com.taobao.metamorphosis.server.store.Location
com.taobao.metamorphosis.server.transaction.store.JournalTransactionStore.AddMsgLocation
- 包容类:
- JournalTransactionStore
public static class JournalTransactionStore.AddMsgLocation
- extends Location
添加消息到store的位置和checksum
- 作者:
- boyan(boyan@taobao.com)
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checksum
public final int checksum
storeDesc
public final String storeDesc
JournalTransactionStore.AddMsgLocation
public JournalTransactionStore.AddMsgLocation(long offset,
int length,
int checksum,
String storeDesc)
decode
public static JournalTransactionStore.AddMsgLocation decode(ByteBuffer buf)
encode
public ByteBuffer encode()
- 消息位置序列化为:
- 8个字节的offset
- 4个字节的长度
- 4个字节checksum:这是指整个消息存储数据的checksum,跟message的checksum不同
- 4个字节长度,存储的分区名的长度
- 存储的分区名
- 返回:
Copyright © 2010–2013. All rights reserved.