Class StoragePermissionRepository
java.lang.Object
com.cotani.permission.storage.StoragePermissionRepository
- All Implemented Interfaces:
PermissionRepository
SQL-backed permission repository using Cotani Storage transactions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads an immutable state snapshot; failures complete the returned stage exceptionally.static List<com.cotani.storage.migration.Migration> saveAsync(PermissionSnapshot snapshot) Persists an immutable state snapshot; implementations must not block the caller.
-
Constructor Details
-
StoragePermissionRepository
public StoragePermissionRepository(com.cotani.storage.api.CotaniStorage storage)
-
-
Method Details
-
loadAsync
Description copied from interface:PermissionRepositoryLoads an immutable state snapshot; failures complete the returned stage exceptionally.- Specified by:
loadAsyncin interfacePermissionRepository
-
saveAsync
Description copied from interface:PermissionRepositoryPersists an immutable state snapshot; implementations must not block the caller.- Specified by:
saveAsyncin interfacePermissionRepository
-
migrations
-