|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.alibaba.rocketmq.client.consumer.store.LocalFileOffsetStore
public class LocalFileOffsetStore
消费进度存储到Consumer本地
| 字段摘要 | |
|---|---|
static String |
LocalOffsetStoreDir
|
| 构造方法摘要 | |
|---|---|
LocalFileOffsetStore(MQClientFactory mQClientFactory,
String groupName)
|
|
| 方法摘要 | |
|---|---|
Map<MessageQueue,Long> |
cloneOffsetTable(String topic)
如果 topic 为空,则不对 topic 进行过滤,全部拷贝。 |
void |
load()
加载Offset |
void |
persist(MessageQueue mq)
|
void |
persistAll(Set<MessageQueue> mqs)
持久化全部消费进度,可能持久化本地或者远端Broker |
long |
readOffset(MessageQueue mq,
ReadOffsetType type)
从本地缓存读取消费进度 |
void |
removeOffset(MessageQueue mq)
删除不必要的MessageQueue offset |
void |
updateOffset(MessageQueue mq,
long offset,
boolean increaseOnly)
更新消费进度,存储到内存 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String LocalOffsetStoreDir
| 构造方法详细信息 |
|---|
public LocalFileOffsetStore(MQClientFactory mQClientFactory,
String groupName)
| 方法详细信息 |
|---|
public void load()
throws MQClientException
OffsetStore 复制的描述
OffsetStore 中的 loadMQClientException
public void updateOffset(MessageQueue mq,
long offset,
boolean increaseOnly)
OffsetStore 复制的描述
OffsetStore 中的 updateOffset
public long readOffset(MessageQueue mq,
ReadOffsetType type)
OffsetStore 复制的描述
OffsetStore 中的 readOffsetpublic void persistAll(Set<MessageQueue> mqs)
OffsetStore 复制的描述
OffsetStore 中的 persistAllpublic void persist(MessageQueue mq)
OffsetStore 中的 persistpublic void removeOffset(MessageQueue mq)
OffsetStore 复制的描述
OffsetStore 中的 removeOffsetpublic Map<MessageQueue,Long> cloneOffsetTable(String topic)
OffsetStore 复制的描述
OffsetStore 中的 cloneOffsetTable
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||