Service.Election, Service.ElectionListenerActivity.ServiceState| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
ConsumerLocalIndexStore(String persistPath,
int persistInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doPersist(File persistFile) |
protected com.google.common.collect.Table<String,String,Map<Short,LocalIndexData>> |
doRead(File persistFile) |
protected void |
doStart() |
protected void |
doStop() |
LocalIndexData |
fetchIndex(String topic,
String app,
short partition) |
protected File |
initPersistPathFile(String path) |
protected void |
persist() |
boolean |
saveIndex(String topic,
String app,
short partition,
long index) |
protected void |
validate() |
getServiceState, isReady, isStarted, isStopped, start, stop, stop, willStopafterStart, afterStop, await, beforeStart, beforeStop, convert, getReadLock, getWriteLock, startErrorpublic ConsumerLocalIndexStore(String persistPath, int persistInterval)
public LocalIndexData fetchIndex(String topic, String app, short partition)
protected com.google.common.collect.Table<String,String,Map<Short,LocalIndexData>> doRead(File persistFile) throws Exception
Exceptionprotected void persist()
protected void doPersist(File persistFile)
Copyright © 2020 Joyqueue Community. All rights reserved.