AtPersistenceBundle class abstract
All the per-atSign persistence resources an at_server needs, produced by an AtPersistenceFactory.
The bundle exposes three top-level resources, each of which implements Compactable:
- keyValueStore — the main key-value store. Its internal commit log (server-side; null on client-side) is reachable via AtKeyValueStore.commitLog.
- accessLog — optional audit trail (server-side only).
- notificationKeystore — optional notification queue (server-side only).
Server-shaped consumers (full atSecondary) opt into all capabilities; client-shaped consumers (e.g. at_client_sdk's local cache) opt into the keystore only.
Constructors
Properties
- accessLog → AtAccessLog?
-
The access log used for stats and security audit.
nullwhen AtPersistenceConfig.enableAccessLog isfalse(typical for client-only consumers).no setter - atSign → String
-
The atSign this bundle owns.
no setter
- backendId → AtPersistenceBackendId
-
Identifies which backend produced this bundle.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
trueafter close has been called (whether directly on the bundle or via the owning factory). Once closed, methods on the bundle are undefined; the producing factory'sbundleForreturnsnulland AtPersistenceFactory.initialize rebuilds.no setter -
keyValueStore
→ AtKeyValueStore<
String, AtData, AtMetaData?> -
The keystore for client data (target of
update/lookup). Its commit log is accessible askeyValueStore.commitLog— non-null on server bundles, null on client bundles.no setter - notificationKeystore → AtNotificationKeystore?
-
The notification keystore.
nullwhen AtPersistenceConfig.enableNotificationKeystore isfalse.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> - Drop all data from this bundle's stores while keeping the underlying connections (Hive boxes etc.) open. Idempotent. Intended for cheap per-test isolation.
-
close(
) → Future< void> - Close all underlying resources. Idempotent.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited