public interface AsyncWriteService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncFlushByPlayerId(java.io.Serializable playerId)
异步存储,由存储系统保存.
|
<T> void |
delete(EntityMapping<T> em,
T entity)
删除一个实体对象.
|
<T> void |
deleteAll(EntityMapping<T> em,
java.util.List<T> result)
删除一批实体对象.
|
void |
init(int saveInterval,
int offlineInterval)
初始化存储系统
|
<T> void |
insert(EntityMapping<T> em,
T entity)
插入一个实体对象.
|
void |
shutdown()
停机存档
|
void |
syncFlushAll()
同步式的清理全部回写数据.
|
<T> void |
update(EntityMapping<T> em,
T entity)
更新一个实体对象.
|
<T> void insert(EntityMapping<T> em, T entity)
T - 实体对象类型em - 实体映射对象entity - 实体对象<T> void delete(EntityMapping<T> em, T entity)
T - 实体对象类型em - 实体映射对象entity - 实体对象<T> void deleteAll(EntityMapping<T> em, java.util.List<T> result)
T - 实体对象类型em - 实体映射对象result - 实体对象列表<T> void update(EntityMapping<T> em, T entity)
T - 实体对象类型em - 实体映射对象entity - 实体对象void syncFlushAll()
一般用于停机维护.
void shutdown()
void asyncFlushByPlayerId(java.io.Serializable playerId)
playerId - 玩家IDvoid init(int saveInterval,
int offlineInterval)
saveInterval - 定时保存间隔offlineInterval - 定时清理缓存