IsolateSpawnParameter class
Constructors
-
IsolateSpawnParameter(int isolateId, AppConfig config, List<
DoxProvider> providers, {List<RouteData> routes = const <RouteData>[], List<RouteData> fallbacks = const <RouteData>[], List<StaticFolder> statics = const <StaticFolder>[], Map<String, RouteBinding> bindings = const <String, RouteBinding>{}, SendPort? control, SendPort? rateLimitPort, SendPort? sessionPort, SendPort? busPort, SendPort? computePort, int isolateCount = 1, bool envExpand = false}) -
const
Properties
-
bindings
→ Map<
String, RouteBinding> -
binders from
Route.bindfinal - busPort → SendPort?
-
the hub of the main isolate, see
IsolateBusfinal - computePort → SendPort?
-
the worker pool of the main isolate, see
Dox().computefinal - config → AppConfig
-
final
- control → SendPort?
-
the isolate sends its own SendPort here once it serves requests.
The main isolate sends a stop message to it on shutdown.
final
- envExpand → bool
-
true when the main isolate read
.envwithCoreFlags.envExpand. Statics are not shared between isolates, so the new isolate setsEnv.flagsfrom it before it reads.env.final -
fallbacks
→ List<
RouteData> -
routes from
Route.fallbackfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- isolateCount → int
-
see
Dox().isolateCountfinal - isolateId → int
-
final
-
providers
→ List<
DoxProvider> -
final
- rateLimitPort → SendPort?
-
the port of the main isolate that keeps the
RateLimitcounts, seeRateLimitCounterfinal -
routes
→ List<
RouteData> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionPort → SendPort?
-
the port of the main isolate that keeps the sessions of a
memorycache store, seeSessionMemoryStorefinal -
statics
→ List<
StaticFolder> -
folders from
Route.staticFilesfinal
Methods
-
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