LayersSupervisor class
Owns a supervised layer chain. Created by Layers.supervise.
A failure of any worker layer (direct or forwarded from a deeper layer)
restarts every worker layer. The top layer object survives, and so do
subscriptions on its bottom bridge and on current: the bridge is
restarted in place and re-handshakes its interest registry.
Properties
-
errors
→ Stream<
EventBusError> -
Worker failures and supervision errors of the chain.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReady → bool
-
True when every worker layer is ready.
no setter
- layer → Layer
-
The top layer. Its
currentbus and thebottombridge object survive a restart; the bridge reconnects to a new worker chain.no setter - restarts → int
-
Completed whole-chain restarts.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → LayersState
-
The current lifecycle state.
no setter
-
waitInit
→ Future<
void> -
Completes when the first chain is ready.
no setter
Methods
-
close(
) → Future< void> - Closes the whole chain: timers and listeners are cancelled, the bridge and the top local bus are disposed. Never restarts. Safe to call twice.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitReady(
) → Future< void> - Waits until the chain is ready. Fails when the supervisor becomes failed or closed first.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited