public class ReadOnlyGraph<K,VV,EV> extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected StateContext |
context |
|
protected long |
currentVersion |
|
protected boolean |
enableRecoverLatestVersion |
|
protected boolean |
enableStateBackgroundSync |
|
protected AtomicBoolean |
initialized |
|
protected IStatefulStore |
inUseGraphStore |
|
protected IStatefulStore |
latestGraphStore |
|
protected IStatefulStore |
lazyCloseGraphStore |
|
private static org.slf4j.Logger |
LOGGER |
|
protected IStoreBuilder |
storeBuilder |
|
protected ScheduledExecutorService |
syncExecutor |
|
protected int |
syncGapMs |
|
protected ViewMetaBookKeeper |
viewMetaBookKeeper |
|
protected Throwable |
warmupException |
| 构造器 | 说明 |
|---|---|
ReadOnlyGraph() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected List<ActionType> |
allowActionTypes() |
|
protected void |
createReadOnlyState(long version) |
|
void |
doStoreAction(int shard,
ActionType actionType,
ActionRequest request) |
|
IBaseStore |
getStore() |
|
void |
init(StateContext context,
IStoreBuilder storeBuilder) |
|
protected void |
recover(long version) |
|
protected void |
startStateSyncService() |
|
protected void |
updateVersion(long version) |
private static final org.slf4j.Logger LOGGER
protected StateContext context
protected IStoreBuilder storeBuilder
protected ViewMetaBookKeeper viewMetaBookKeeper
protected ScheduledExecutorService syncExecutor
protected long currentVersion
protected Throwable warmupException
protected AtomicBoolean initialized
protected IStatefulStore inUseGraphStore
protected IStatefulStore latestGraphStore
protected IStatefulStore lazyCloseGraphStore
protected boolean enableRecoverLatestVersion
protected boolean enableStateBackgroundSync
protected int syncGapMs
public void init(StateContext context, IStoreBuilder storeBuilder)
protected List<ActionType> allowActionTypes()
public void doStoreAction(int shard,
ActionType actionType,
ActionRequest request)
protected void recover(long version)
protected void startStateSyncService()
public IBaseStore getStore()
protected void createReadOnlyState(long version)
protected void updateVersion(long version)
Copyright © 2025. All rights reserved.