HiveAtPersistenceFactory class
Hive-backed AtPersistenceFactory. Produces HiveAtPersistenceBundle instances and owns their lifecycle.
- Implemented types
Constructors
Properties
- backendId → AtPersistenceBackendId
-
Identifies which backend this factory produces.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bundleFor(
String atSign) → AtPersistenceBundle? -
Returns the open bundle if initialize has been called for
atSignand the bundle is not closed; otherwisenull. Useful for code paths that should be no-ops when persistence is not yet wired (e.g. metrics on a not-yet-started secondary).override -
close(
) → Future< void> -
Close every bundle this factory has produced. Idempotent —
calling twice does not throw, and calling initialize after
close is allowed and starts a fresh lifecycle.
override
-
closeFor(
String atSign) → Future< void> -
Close the bundle for
atSignand drop the factory's reference to it. Safe to call when no bundle exists foratSign— the call is a no-op. After closeFor, bundleFor returnsnulland initialize builds a fresh bundle on next call.override -
initialize(
String atSign, AtPersistenceConfig config) → Future< AtPersistenceBundle> -
Build a fully-initialised AtPersistenceBundle for
atSign.override -
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