public class DataVersion extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected Map<String,cn.xnatural.remoter.DataVersion.Record> |
records |
| Modifier and Type | Method and Description |
|---|---|
DataVersion |
update(String dataKey,
Long version,
Object data)
更新数据到集群
|
protected final String key
public DataVersion update(String dataKey, Long version, Object data)
dataKey - 数据keyversion - 数据更新版本. NOTE: 每次更新得保证比之前的版本大data - 数据内容 支持基本类型, String NOTE: 建议数据持久化DataVersionCopyright © 2022. All rights reserved.