public interface DataStorage<K,T>
void initialize() throws java.lang.Exception
java.lang.Exception
- 当出现任何错误时抛出void shutdown()
@Nullable T loadData(@NotNull K key) throws java.lang.Exception
key
- 数据主键java.lang.Exception
- 当出现任何错误时抛出void saveData(@NotNull T data) throws java.lang.Exception
data
- 数据java.lang.Exception
- 当出现任何错误时抛出Copyright © 2024. All rights reserved.