Package me.kzheart.klib.data
Interface TransactionContext
- All Superinterfaces:
KeyValueStore
在单个原子事务中公开的键值数据与结构元数据。
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancompareAndSetSchemaVersion(String schemaName, int expectedVersion, int newVersion) 仅当存储版本仍等于expectedVersion时写入newVersion。 在锁定事务中,这可防止两个实例并发应用同一项迁移。intschemaVersion(String schemaName) voidschemaVersion(String schemaName, int version) Methods inherited from interface me.kzheart.klib.data.KeyValueStore
delete, entries, get, put
-
Method Details
-
schemaVersion
-
schemaVersion
-
compareAndSetSchemaVersion
仅当存储版本仍等于expectedVersion时写入newVersion。 在锁定事务中,这可防止两个实例并发应用同一项迁移。
-