WampMetaStateCache class final
A session-scoped, race-safe view of the standard WAMP Meta API state.
Lifecycle subscriptions are established before the initial snapshots are read. Events received during hydration are replayed in receive order, so a create or delete racing a Meta API call cannot leave the cache stale.
Properties
-
changes
→ Stream<
WampMetaStateSnapshot> -
Emits a new immutable snapshot after each valid lifecycle update.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → WampMetaStateSnapshot
-
The latest immutable state snapshot.
no setter
Methods
-
close(
) → Future< void> - Releases the lifecycle subscriptions and closes the change stream.
-
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
Static Methods
-
start(
Session session, {int maxConcurrentQueries = 16}) → Future< WampMetaStateCache> -
Starts a cache for an established
session.