@zlink-systems/framework 0.29.1 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +150 -68
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts/Actors/ZLinkActorClient.d.ts +2 -1
- package/dist/contracts/Channels/Calls.d.ts +2 -1
- package/dist/contracts/Common/ZLinkMessageMetadata.js +11 -5
- package/dist/contracts/Configuration/Builders.d.ts +1 -2
- package/dist/contracts/Configuration/Configs.d.ts +0 -5
- package/dist/contracts/Configuration/RegistrationBuilders.js +6 -4
- package/dist/contracts/Configuration/RegistrationTypes.d.ts +1 -6
- package/dist/contracts/Configuration/RegistrationValidators.js +4 -4
- package/dist/contracts/Configuration/index.d.ts +1 -1
- package/dist/contracts/Handlers/Attributes.d.ts +5 -13
- package/dist/contracts/Handlers/Attributes.js +7 -11
- package/dist/contracts/Handlers/JsonContract.d.ts +2 -46
- package/dist/contracts/Handlers/JsonContract.js +4 -153
- package/dist/contracts/Spots/Contracts.d.ts +2 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +3 -1
- package/dist/nest-integration.d.ts +1 -1
- package/dist/nest-integration.js +2 -1
- package/dist/runtime/actors/actor-client.d.ts +1 -1
- package/dist/runtime/actors/actor-client.js +14 -12
- package/dist/runtime/actors/actor-handoff.d.ts +3 -2
- package/dist/runtime/actors/actor-handoff.js +15 -7
- package/dist/runtime/actors/actor-join-relocation.d.ts +1 -0
- package/dist/runtime/actors/actor-local-native-join.js +9 -12
- package/dist/runtime/actors/actor-remote-wire.js +15 -0
- package/dist/runtime/actors/actor-routed-join-transport.d.ts +6 -2
- package/dist/runtime/actors/actor-routed-json-request.d.ts +2 -0
- package/dist/runtime/actors/index.d.ts +2 -1
- package/dist/runtime/actors/index.js +18 -6
- package/dist/runtime/actors/spot-actor-dispatch.js +2 -2
- package/dist/runtime/admission.d.ts +1 -1
- package/dist/runtime/admission.js +15 -5
- package/dist/runtime/application-jobs/application-ingress-record-owner.d.ts +9 -9
- package/dist/runtime/application-jobs/application-ingress-record-owner.js +45 -23
- package/dist/runtime/application-jobs/application-job-queue-scope.d.ts +5 -2
- package/dist/runtime/application-jobs/application-job-queue-scope.js +41 -21
- package/dist/runtime/application-jobs/contracts.d.ts +15 -2
- package/dist/runtime/backend/contracts/index.d.ts +27 -27
- package/dist/runtime/backend/mesh-completion-table.d.ts +15 -5
- package/dist/runtime/backend/mesh-completion-table.js +160 -50
- package/dist/runtime/backend/mesh-dispatch-pump.d.ts +3 -0
- package/dist/runtime/backend/mesh-dispatch-pump.js +53 -36
- package/dist/runtime/backend/node/node-backend-adapter-factory.js +6 -1
- package/dist/runtime/backend/node/node-backend-adapter-support.d.ts +3 -3
- package/dist/runtime/backend/node/node-backend-adapter-support.js +33 -31
- package/dist/runtime/backend/node/node-dealer-channel-client-transport.d.ts +1 -1
- package/dist/runtime/backend/node/node-dealer-channel-client-transport.js +5 -2
- package/dist/runtime/backend/node/node-mesh-backend-adapter.d.ts +1 -9
- package/dist/runtime/backend/node/node-mesh-backend-adapter.js +1 -1
- package/dist/runtime/backend/node/node-raw-binding-port.js +50 -25
- package/dist/runtime/backend/node/node-raw-mesh-backend.d.ts +22 -16
- package/dist/runtime/backend/node/node-raw-mesh-backend.js +133 -149
- package/dist/runtime/backend/node/node-socket-backend-adapter.js +15 -10
- package/dist/runtime/backend/raw-binding-port.d.ts +10 -3
- package/dist/runtime/backend/runtime-message.d.ts +1 -0
- package/dist/runtime/backend/runtime-message.js +5 -0
- package/dist/runtime/backend/runtime-values.d.ts +1 -0
- package/dist/runtime/backend/runtime-values.js +2 -1
- package/dist/runtime/channels/channel-clients.d.ts +1 -0
- package/dist/runtime/channels/channel-clients.js +58 -21
- package/dist/runtime/channels/channel-dispatch-pipeline.d.ts +3 -2
- package/dist/runtime/channels/channel-dispatch-pipeline.js +20 -11
- package/dist/runtime/channels/channel-dispatch-services.d.ts +1 -0
- package/dist/runtime/channels/channel-dispatch-services.js +45 -0
- package/dist/runtime/channels/channel-dispatchers.d.ts +1 -1
- package/dist/runtime/channels/channel-dispatchers.js +27 -26
- package/dist/runtime/channels/channel-envelope-inspection.d.ts +1 -2
- package/dist/runtime/channels/channel-envelope-inspection.js +1 -16
- package/dist/runtime/channels/channel-envelope.d.ts +1 -0
- package/dist/runtime/channels/channel-envelope.js +83 -8
- package/dist/runtime/channels/channel-outbound-operations.d.ts +2 -2
- package/dist/runtime/channels/channel-outbound-operations.js +8 -8
- package/dist/runtime/channels/channel-receive-loops.js +3 -3
- package/dist/runtime/channels/channel-runtime-lifecycle.js +2 -1
- package/dist/runtime/channels/channel-runtime-manager.d.ts +6 -6
- package/dist/runtime/channels/channel-runtime-manager.js +12 -12
- package/dist/runtime/channels/channel-socket-registry.d.ts +10 -3
- package/dist/runtime/channels/channel-socket-registry.js +59 -82
- package/dist/runtime/channels/channel-transports.d.ts +18 -15
- package/dist/runtime/channels/channel-transports.js +48 -31
- package/dist/runtime/channels/local-spot-route-transport.d.ts +1 -1
- package/dist/runtime/channels/local-spot-route-transport.js +2 -1
- package/dist/runtime/channels/router-socket-spot-route-transport.d.ts +2 -2
- package/dist/runtime/channels/router-socket-spot-route-transport.js +4 -4
- package/dist/runtime/channels/source-spot-router.d.ts +2 -2
- package/dist/runtime/channels/source-spot-router.js +4 -4
- package/dist/runtime/channels/spot-node-route-transport.d.ts +2 -2
- package/dist/runtime/channels/spot-node-route-transport.js +4 -4
- package/dist/runtime/channels/spot-route-bridge-transport.d.ts +2 -2
- package/dist/runtime/channels/spot-route-bridge-transport.js +4 -4
- package/dist/runtime/channels/spot-route-dispatch-strategy.d.ts +5 -4
- package/dist/runtime/channels/spot-route-dispatch-strategy.js +18 -18
- package/dist/runtime/diagnostics/message-flow.d.ts +1 -0
- package/dist/runtime/diagnostics/message-flow.js +3 -3
- package/dist/runtime/execution/serial-execution-queue.d.ts +1 -0
- package/dist/runtime/execution/serial-execution-queue.js +1 -0
- package/dist/runtime/foundation/actor-join-recovery-codec.js +2 -2
- package/dist/runtime/foundation/durable-service-request.d.ts +14 -0
- package/dist/runtime/foundation/durable-service-request.js +98 -0
- package/dist/runtime/foundation/operation-identity.d.ts +1 -0
- package/dist/runtime/foundation/operation-identity.js +5 -1
- package/dist/runtime/foundation/raw-service-mesh-runtime.d.ts +37 -6
- package/dist/runtime/foundation/raw-service-mesh-runtime.js +473 -220
- package/dist/runtime/foundation/service-liveness-registry.d.ts +20 -8
- package/dist/runtime/foundation/service-liveness-registry.js +57 -44
- package/dist/runtime/foundation/service-mailbox.d.ts +3 -0
- package/dist/runtime/foundation/service-mailbox.js +2 -1
- package/dist/runtime/foundation/service-relocation-object-owner.d.ts +1 -0
- package/dist/runtime/foundation/service-relocation-object-owner.js +1 -0
- package/dist/runtime/foundation/service-relocation-runtime.d.ts +2 -0
- package/dist/runtime/foundation/service-relocation-runtime.js +13 -1
- package/dist/runtime/foundation/service-runtime-contracts.d.ts +2 -0
- package/dist/runtime/foundation/service-stateful-runtime.d.ts +10 -9
- package/dist/runtime/foundation/service-stateful-runtime.js +78 -126
- package/dist/runtime/foundation/service-stateful-wire-codec.d.ts +5 -7
- package/dist/runtime/foundation/service-stateful-wire-codec.js +43 -61
- package/dist/runtime/foundation/service-topology-registry.d.ts +16 -4
- package/dist/runtime/foundation/service-topology-registry.js +69 -30
- package/dist/runtime/foundation/service-wire-m6a-codec.d.ts +3 -3
- package/dist/runtime/foundation/service-wire-m6a-codec.js +36 -38
- package/dist/runtime/handlers/handler-instance-scope.d.ts +8 -0
- package/dist/runtime/handlers/handler-instance-scope.js +54 -11
- package/dist/runtime/host/actor-packet-relay.js +7 -7
- package/dist/runtime/host/actor-runtime-options-factory.js +2 -2
- package/dist/runtime/host/application-job-queue.d.ts +28 -9
- package/dist/runtime/host/application-job-queue.js +214 -50
- package/dist/runtime/host/entry-actor-runtime.d.ts +1 -0
- package/dist/runtime/host/entry-actor-runtime.js +4 -1
- package/dist/runtime/host/index.d.ts +7 -1
- package/dist/runtime/host/index.js +154 -126
- package/dist/runtime/host/instance-activation-authority.d.ts +2 -1
- package/dist/runtime/host/instance-activation-authority.js +89 -25
- package/dist/runtime/host/remote-bound-session-relay.js +2 -18
- package/dist/runtime/host/route-mesh-runtime.js +1 -1
- package/dist/runtime/host/service-relocation-control.d.ts +1 -0
- package/dist/runtime/host/service-relocation-control.js +10 -4
- package/dist/runtime/host/service-relocation-host-runtime.d.ts +6 -8
- package/dist/runtime/host/service-relocation-host-runtime.js +215 -243
- package/dist/runtime/host/spot-address-transport.d.ts +1 -0
- package/dist/runtime/host/spot-address-transport.js +28 -14
- package/dist/runtime/host/spot-runtime-options-factory.js +3 -2
- package/dist/runtime/host/user-spot-creation-coordinator.d.ts +1 -0
- package/dist/runtime/host/user-spot-creation-coordinator.js +1 -0
- package/dist/runtime/locations/actor-location-claims.d.ts +2 -2
- package/dist/runtime/locations/actor-location-claims.js +34 -19
- package/dist/runtime/locations/domain-store-contract.d.ts +2 -2
- package/dist/runtime/locations/in-memory-authority-store.d.ts +4 -2
- package/dist/runtime/locations/in-memory-authority-store.js +80 -8
- package/dist/runtime/locations/in-memory-location-store.d.ts +2 -2
- package/dist/runtime/locations/in-memory-location-store.js +19 -3
- package/dist/runtime/locations/internal-location-contracts.d.ts +3 -0
- package/dist/runtime/locations/lifecycle.d.ts +1 -2
- package/dist/runtime/locations/lifecycle.js +2 -5
- package/dist/runtime/locations/location-store-repository.d.ts +3 -2
- package/dist/runtime/locations/location-store-repository.js +165 -22
- package/dist/runtime/locations/resolvers.d.ts +2 -1
- package/dist/runtime/locations/resolvers.js +10 -1
- package/dist/runtime/locations/runtime.d.ts +1 -1
- package/dist/runtime/locations/runtime.js +24 -23
- package/dist/runtime/messaging/framework-json-v1.d.ts +4 -6
- package/dist/runtime/messaging/framework-json-v1.js +38 -294
- package/dist/runtime/messaging/packet-name.d.ts +1 -1
- package/dist/runtime/messaging/packet-name.js +8 -24
- package/dist/runtime/messaging/request-result.d.ts +2 -0
- package/dist/runtime/messaging/request-result.js +54 -0
- package/dist/runtime/messaging/submission-result.d.ts +2 -1
- package/dist/runtime/messaging/submission-result.js +7 -4
- package/dist/runtime/protocol/service_wire_codec.generated.d.ts +15 -0
- package/dist/runtime/protocol/service_wire_codec.generated.js +144 -0
- package/dist/runtime/protocol/service_wire_pilot_codec.generated.d.ts +9 -0
- package/dist/runtime/protocol/service_wire_pilot_codec.generated.js +14 -1
- package/dist/runtime/spots/formal-remote-actor-admission-registry.d.ts +9 -2
- package/dist/runtime/spots/formal-remote-actor-admission-registry.js +33 -19
- package/dist/runtime/spots/index.d.ts +7 -3
- package/dist/runtime/spots/index.js +23 -16
- package/dist/runtime/spots/spot-activation.d.ts +3 -1
- package/dist/runtime/spots/spot-activation.js +21 -12
- package/dist/runtime/spots/spot-actor-admission-coordinator.d.ts +2 -1
- package/dist/runtime/spots/spot-actor-admission-coordinator.js +11 -10
- package/dist/runtime/spots/spot-actor-packet-dispatch.d.ts +4 -1
- package/dist/runtime/spots/spot-actor-packet-dispatch.js +7 -5
- package/dist/runtime/spots/spot-actor-packet-drain.js +2 -0
- package/dist/runtime/spots/spot-actor-packet-relay-dispatch.js +1 -0
- package/dist/runtime/spots/spot-entry-activation.js +9 -3
- package/dist/runtime/spots/spot-handler-registry.d.ts +3 -1
- package/dist/runtime/spots/spot-handler-registry.js +18 -8
- package/dist/runtime/spots/spot-node-autoconnect.js +4 -3
- package/dist/runtime/spots/spot-node-runtime-manager.d.ts +2 -1
- package/dist/runtime/spots/spot-node-runtime-manager.js +4 -11
- package/dist/runtime/spots/spot-outbound.d.ts +3 -0
- package/dist/runtime/spots/spot-outbound.js +24 -15
- package/dist/runtime/spots/spot-routed-spot-packet-dispatch.d.ts +1 -0
- package/dist/runtime/spots/spot-routed-spot-packet-dispatch.js +1 -1
- package/dist/runtime/spots/spot-routing-internal.d.ts +6 -0
- package/dist/runtime/spots/spot-runtime-ports.d.ts +3 -1
- package/dist/runtime/spots/spot-subscription-dispatch.js +0 -3
- package/dist/runtime/spots/spot-timer.js +1 -0
- package/dist/runtime/streams/stream-session-runtime.d.ts +1 -1
- package/dist/runtime/streams/stream-session-runtime.js +14 -28
- package/package.json +3 -3
- package/src/contracts/Actors/ZLinkActorClient.ts +2 -1
- package/src/contracts/Channels/Calls.ts +2 -1
- package/src/contracts/Common/ZLinkMessageMetadata.ts +13 -8
- package/src/contracts/Configuration/Builders.ts +1 -2
- package/src/contracts/Configuration/Configs.ts +0 -6
- package/src/contracts/Configuration/RegistrationBuilders.ts +8 -12
- package/src/contracts/Configuration/RegistrationTypes.ts +1 -6
- package/src/contracts/Configuration/RegistrationValidators.ts +9 -10
- package/src/contracts/Configuration/index.ts +1 -6
- package/src/contracts/Handlers/Attributes.ts +14 -21
- package/src/contracts/Handlers/JsonContract.ts +8 -216
- package/src/contracts/Spots/Contracts.ts +2 -1
- package/src/internal.ts +1 -0
- package/src/nest-integration.ts +1 -0
- package/src/runtime/actors/actor-client.ts +40 -16
- package/src/runtime/actors/actor-handoff.ts +22 -8
- package/src/runtime/actors/actor-join-relocation.ts +1 -0
- package/src/runtime/actors/actor-local-native-join.ts +17 -26
- package/src/runtime/actors/actor-remote-wire.ts +17 -0
- package/src/runtime/actors/actor-routed-join-transport.ts +14 -4
- package/src/runtime/actors/actor-routed-json-request.ts +10 -2
- package/src/runtime/actors/index.ts +19 -5
- package/src/runtime/actors/spot-actor-dispatch.ts +4 -2
- package/src/runtime/admission.ts +18 -5
- package/src/runtime/application-jobs/application-ingress-record-owner.ts +53 -27
- package/src/runtime/application-jobs/application-job-queue-scope.ts +56 -22
- package/src/runtime/application-jobs/contracts.ts +28 -2
- package/src/runtime/backend/contracts/index.ts +63 -32
- package/src/runtime/backend/mesh-completion-table.ts +175 -59
- package/src/runtime/backend/mesh-dispatch-pump.ts +59 -32
- package/src/runtime/backend/node/node-backend-adapter-factory.ts +12 -5
- package/src/runtime/backend/node/node-backend-adapter-support.ts +42 -31
- package/src/runtime/backend/node/node-dealer-channel-client-transport.ts +12 -2
- package/src/runtime/backend/node/node-mesh-backend-adapter.ts +3 -10
- package/src/runtime/backend/node/node-raw-binding-port.ts +73 -37
- package/src/runtime/backend/node/node-raw-mesh-backend.ts +209 -176
- package/src/runtime/backend/node/node-socket-backend-adapter.ts +32 -13
- package/src/runtime/backend/raw-binding-port.ts +18 -3
- package/src/runtime/backend/runtime-message.ts +6 -0
- package/src/runtime/backend/runtime-values.ts +1 -0
- package/src/runtime/channels/channel-clients.ts +90 -41
- package/src/runtime/channels/channel-dispatch-pipeline.ts +69 -34
- package/src/runtime/channels/channel-dispatch-services.ts +69 -1
- package/src/runtime/channels/channel-dispatchers.ts +29 -27
- package/src/runtime/channels/channel-envelope-inspection.ts +2 -16
- package/src/runtime/channels/channel-envelope.ts +133 -8
- package/src/runtime/channels/channel-outbound-operations.ts +22 -8
- package/src/runtime/channels/channel-receive-loops.ts +3 -3
- package/src/runtime/channels/channel-runtime-lifecycle.ts +7 -1
- package/src/runtime/channels/channel-runtime-manager.ts +29 -12
- package/src/runtime/channels/channel-socket-registry.ts +84 -130
- package/src/runtime/channels/channel-transports.ts +128 -60
- package/src/runtime/channels/local-spot-route-transport.ts +3 -1
- package/src/runtime/channels/router-socket-spot-route-transport.ts +13 -4
- package/src/runtime/channels/source-spot-router.ts +8 -4
- package/src/runtime/channels/spot-node-route-transport.ts +8 -4
- package/src/runtime/channels/spot-route-bridge-transport.ts +6 -4
- package/src/runtime/channels/spot-route-dispatch-strategy.ts +47 -18
- package/src/runtime/diagnostics/message-flow.ts +1 -1
- package/src/runtime/execution/serial-execution-queue.ts +2 -0
- package/src/runtime/foundation/actor-join-recovery-codec.ts +2 -2
- package/src/runtime/foundation/durable-service-request.ts +137 -0
- package/src/runtime/foundation/operation-identity.ts +5 -1
- package/src/runtime/foundation/raw-service-mesh-runtime.ts +642 -253
- package/src/runtime/foundation/service-liveness-registry.ts +68 -59
- package/src/runtime/foundation/service-mailbox.ts +7 -1
- package/src/runtime/foundation/service-relocation-object-owner.ts +2 -0
- package/src/runtime/foundation/service-relocation-runtime.ts +18 -1
- package/src/runtime/foundation/service-runtime-contracts.ts +7 -1
- package/src/runtime/foundation/service-stateful-runtime.ts +128 -160
- package/src/runtime/foundation/service-stateful-wire-codec.ts +55 -84
- package/src/runtime/foundation/service-topology-registry.ts +103 -42
- package/src/runtime/foundation/service-wire-m6a-codec.ts +57 -38
- package/src/runtime/handlers/handler-instance-scope.ts +67 -16
- package/src/runtime/host/actor-packet-relay.ts +7 -0
- package/src/runtime/host/actor-runtime-options-factory.ts +14 -2
- package/src/runtime/host/application-job-queue.ts +249 -48
- package/src/runtime/host/entry-actor-runtime.ts +5 -0
- package/src/runtime/host/index.ts +224 -160
- package/src/runtime/host/instance-activation-authority.ts +132 -27
- package/src/runtime/host/remote-bound-session-relay.ts +2 -23
- package/src/runtime/host/route-mesh-runtime.ts +1 -1
- package/src/runtime/host/service-relocation-control.ts +11 -5
- package/src/runtime/host/service-relocation-host-runtime.ts +317 -291
- package/src/runtime/host/spot-address-transport.ts +49 -24
- package/src/runtime/host/spot-runtime-options-factory.ts +4 -0
- package/src/runtime/host/user-spot-creation-coordinator.ts +8 -0
- package/src/runtime/locations/actor-location-claims.ts +52 -30
- package/src/runtime/locations/domain-store-contract.ts +6 -2
- package/src/runtime/locations/in-memory-authority-store.ts +113 -9
- package/src/runtime/locations/in-memory-location-store.ts +25 -3
- package/src/runtime/locations/internal-location-contracts.ts +4 -0
- package/src/runtime/locations/lifecycle.ts +8 -26
- package/src/runtime/locations/location-store-repository.ts +220 -15
- package/src/runtime/locations/resolvers.ts +25 -2
- package/src/runtime/locations/runtime.ts +28 -24
- package/src/runtime/messaging/framework-json-v1.ts +5 -325
- package/src/runtime/messaging/packet-name.ts +5 -25
- package/src/runtime/messaging/request-result.ts +58 -0
- package/src/runtime/messaging/submission-result.ts +7 -3
- package/src/runtime/protocol/service_wire_codec.generated.ts +131 -1
- package/src/runtime/protocol/service_wire_pilot_codec.generated.ts +4 -4
- package/src/runtime/spots/formal-remote-actor-admission-registry.ts +45 -23
- package/src/runtime/spots/index.ts +30 -2
- package/src/runtime/spots/spot-activation.ts +33 -10
- package/src/runtime/spots/spot-actor-admission-coordinator.ts +13 -0
- package/src/runtime/spots/spot-actor-packet-dispatch.ts +10 -0
- package/src/runtime/spots/spot-actor-packet-drain.ts +2 -0
- package/src/runtime/spots/spot-actor-packet-relay-dispatch.ts +1 -0
- package/src/runtime/spots/spot-entry-activation.ts +12 -2
- package/src/runtime/spots/spot-handler-registry.ts +41 -8
- package/src/runtime/spots/spot-node-autoconnect.ts +6 -2
- package/src/runtime/spots/spot-node-runtime-manager.ts +7 -12
- package/src/runtime/spots/spot-outbound.ts +36 -16
- package/src/runtime/spots/spot-routed-spot-packet-dispatch.ts +2 -1
- package/src/runtime/spots/spot-routing-internal.ts +14 -0
- package/src/runtime/spots/spot-runtime-ports.ts +3 -0
- package/src/runtime/spots/spot-subscription-dispatch.ts +0 -3
- package/src/runtime/spots/spot-timer.ts +5 -1
- package/src/runtime/streams/stream-session-runtime.ts +13 -30
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { ZLinkBackendContext, ZLinkBackendMeshNode, ZLinkMeshBackendAdapter } from '../contracts';
|
|
2
2
|
export declare class ZLinkNodeMeshBackendAdapter implements ZLinkMeshBackendAdapter {
|
|
3
|
-
createMeshNode(context: ZLinkBackendContext, options:
|
|
4
|
-
readonly meshName: string;
|
|
5
|
-
readonly routingId?: string;
|
|
6
|
-
readonly receiveTimeoutMs?: number;
|
|
7
|
-
readonly trustProfile?: string;
|
|
8
|
-
readonly applicationJobQueue: import('../../application-jobs/contracts').ApplicationJobQueuePort;
|
|
9
|
-
readonly applicationJobReceiveFlowFailureSink?: (error: unknown) => void;
|
|
10
|
-
readonly peerAdmissionSealed?: () => boolean;
|
|
11
|
-
}): ZLinkBackendMeshNode;
|
|
3
|
+
createMeshNode(context: ZLinkBackendContext, options: Parameters<ZLinkMeshBackendAdapter['createMeshNode']>[1]): ZLinkBackendMeshNode;
|
|
12
4
|
}
|
|
@@ -12,7 +12,7 @@ class ZLinkNodeMeshBackendAdapter {
|
|
|
12
12
|
if (!isBindingContext(bindingContext)) {
|
|
13
13
|
throw new TypeError('Node MeshNode creation requires the Node binding Context owned by the host.');
|
|
14
14
|
}
|
|
15
|
-
return new node_raw_mesh_backend_1.ZLinkNodeRawMeshBackend(options.meshName, options.routingId, new node_raw_binding_port_1.ZLinkNodeRawBindingPort(bindingContext, options.receiveTimeoutMs), options.applicationJobQueue, options.applicationJobReceiveFlowFailureSink, options.peerAdmissionSealed);
|
|
15
|
+
return new node_raw_mesh_backend_1.ZLinkNodeRawMeshBackend(options.meshName, options.routingId, new node_raw_binding_port_1.ZLinkNodeRawBindingPort(bindingContext, options.receiveTimeoutMs), options.applicationJobQueue, options.applicationJobReceiveFlowFailureSink, options.peerAdmissionSealed, options.infrastructureTaskRunner);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.ZLinkNodeMeshBackendAdapter = ZLinkNodeMeshBackendAdapter;
|
|
@@ -5,6 +5,7 @@ const zlink_1 = require("@zlink-systems/zlink");
|
|
|
5
5
|
const node_backend_adapter_support_1 = require("./node-backend-adapter-support");
|
|
6
6
|
const node_socket_backend_adapter_1 = require("./node-socket-backend-adapter");
|
|
7
7
|
const node_event_loop_poller_1 = require("./node-event-loop-poller");
|
|
8
|
+
const runtime_message_1 = require("../runtime-message");
|
|
8
9
|
class ZLinkNodeRawBindingPort {
|
|
9
10
|
sharedContext;
|
|
10
11
|
routerReceiveTimeoutMs;
|
|
@@ -114,10 +115,6 @@ class NodeRawSocketPort {
|
|
|
114
115
|
connectable(this.socket).disconnect(endpoint);
|
|
115
116
|
this.endpoints.delete(`connect\0${endpoint}`);
|
|
116
117
|
}
|
|
117
|
-
setReceiveFlowState(state) {
|
|
118
|
-
this.requireOpen();
|
|
119
|
-
this.socket.setReceiveFlowState(state === 'paused' ? zlink_1.ReceiveFlowState.PAUSED : zlink_1.ReceiveFlowState.RUNNING);
|
|
120
|
-
}
|
|
121
118
|
monitor() {
|
|
122
119
|
this.requireOpen();
|
|
123
120
|
const nativeMonitor = this.socket.monitorOpen();
|
|
@@ -178,9 +175,39 @@ class NodeRawSocketPort {
|
|
|
178
175
|
}
|
|
179
176
|
class NodeRawRouterPort extends NodeRawSocketPort {
|
|
180
177
|
nextIncomingRequestSequence = 1n;
|
|
178
|
+
routingIds = new Map();
|
|
179
|
+
nextRequestSequence = () => {
|
|
180
|
+
const current = this.nextIncomingRequestSequence;
|
|
181
|
+
this.nextIncomingRequestSequence =
|
|
182
|
+
current === BigInt(Number.MAX_SAFE_INTEGER) ? 1n : current + 1n;
|
|
183
|
+
return current;
|
|
184
|
+
};
|
|
185
|
+
replyParts = (targetRid, replyToken, parts) => {
|
|
186
|
+
appendReplyParts(this.socket.reply(this.preparedRoutingId(targetRid), replyToken), parts).submit();
|
|
187
|
+
};
|
|
188
|
+
preparedRoutingId(routingId) {
|
|
189
|
+
if (typeof routingId !== 'string')
|
|
190
|
+
return bindingRoutingId(routingId);
|
|
191
|
+
let prepared = this.routingIds.get(routingId);
|
|
192
|
+
if (prepared === undefined)
|
|
193
|
+
this.routingIds.set(routingId, (prepared = bindingRoutingId(routingId)));
|
|
194
|
+
return prepared;
|
|
195
|
+
}
|
|
196
|
+
close() {
|
|
197
|
+
try {
|
|
198
|
+
super.close();
|
|
199
|
+
}
|
|
200
|
+
finally {
|
|
201
|
+
this.routingIds.clear();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
setReceiveFlowState(state) {
|
|
205
|
+
this.requireOpen();
|
|
206
|
+
this.socket.setReceiveFlowState(state === 'paused' ? zlink_1.ReceiveFlowState.PAUSED : zlink_1.ReceiveFlowState.RUNNING);
|
|
207
|
+
}
|
|
181
208
|
disconnectRid(routingId) {
|
|
182
209
|
this.requireOpen();
|
|
183
|
-
this.socket.disconnectRid(
|
|
210
|
+
this.socket.disconnectRid(this.preparedRoutingId(routingId));
|
|
184
211
|
}
|
|
185
212
|
constructor(socket, receiveTimeoutMs) {
|
|
186
213
|
super(socket, true);
|
|
@@ -197,24 +224,29 @@ class NodeRawRouterPort extends NodeRawSocketPort {
|
|
|
197
224
|
}
|
|
198
225
|
setRoutingId(routingId) {
|
|
199
226
|
this.requireOpen();
|
|
200
|
-
this.socket.setRoutingId(
|
|
227
|
+
this.socket.setRoutingId(this.preparedRoutingId(routingId));
|
|
201
228
|
}
|
|
202
229
|
connectToRoutingId(routingId, endpoint) {
|
|
203
230
|
this.requireOpen();
|
|
204
|
-
this.socket.options.setConnectRoutingId(
|
|
231
|
+
this.socket.options.setConnectRoutingId(this.preparedRoutingId(routingId));
|
|
205
232
|
this.connect(endpoint);
|
|
206
233
|
}
|
|
207
234
|
send(targetRid, parts) {
|
|
208
235
|
this.requireOpen();
|
|
209
236
|
requireParts(parts);
|
|
210
|
-
return (0, node_backend_adapter_support_1.submitBindingAsyncSend)(this.socket.send(
|
|
237
|
+
return (0, node_backend_adapter_support_1.submitBindingAsyncSend)(this.socket.send(this.preparedRoutingId(targetRid)), parts);
|
|
238
|
+
}
|
|
239
|
+
submitSend(targetRid, parts) {
|
|
240
|
+
this.requireOpen();
|
|
241
|
+
requireParts(parts);
|
|
242
|
+
return (0, node_backend_adapter_support_1.submitBindingSend)(this.socket.send(this.preparedRoutingId(targetRid)), parts);
|
|
211
243
|
}
|
|
212
|
-
async request(targetRid, parts, timeoutMs) {
|
|
244
|
+
async request(targetRid, parts, timeoutMs, recordReceived, onAdmitted) {
|
|
213
245
|
this.requireOpen();
|
|
214
246
|
const deadlineMs = performance.now() + timeoutMs;
|
|
215
247
|
let submission;
|
|
216
248
|
try {
|
|
217
|
-
submission = appendRequestParts(this.socket.request(
|
|
249
|
+
submission = appendRequestParts(this.socket.request(this.preparedRoutingId(targetRid)), parts)
|
|
218
250
|
.timeout(timeoutMs)
|
|
219
251
|
.submit();
|
|
220
252
|
}
|
|
@@ -222,8 +254,8 @@ class NodeRawRouterPort extends NodeRawSocketPort {
|
|
|
222
254
|
throw (0, node_backend_adapter_support_1.translateBindingResultError)(error, 'submit');
|
|
223
255
|
}
|
|
224
256
|
try {
|
|
225
|
-
const replies = await (0, node_backend_adapter_support_1.bindingRequestReply)(submission, deadlineMs);
|
|
226
|
-
return
|
|
257
|
+
const replies = await (0, node_backend_adapter_support_1.bindingRequestReply)(submission, deadlineMs, recordReceived, onAdmitted);
|
|
258
|
+
return retainAndClose(replies);
|
|
227
259
|
}
|
|
228
260
|
catch (error) {
|
|
229
261
|
throw (0, node_backend_adapter_support_1.translateBindingResultError)(error, 'completion');
|
|
@@ -238,14 +270,7 @@ class NodeRawRouterPort extends NodeRawSocketPort {
|
|
|
238
270
|
}
|
|
239
271
|
receive(dontWait = false) {
|
|
240
272
|
this.requireOpen();
|
|
241
|
-
return receiveRecord(this.socket, dontWait,
|
|
242
|
-
const current = this.nextIncomingRequestSequence;
|
|
243
|
-
this.nextIncomingRequestSequence =
|
|
244
|
-
current === BigInt(Number.MAX_SAFE_INTEGER) ? 1n : current + 1n;
|
|
245
|
-
return current;
|
|
246
|
-
}, (targetRid, replyToken, parts) => {
|
|
247
|
-
appendReplyParts(this.socket.reply(bindingRoutingId(targetRid), replyToken), parts).submit();
|
|
248
|
-
});
|
|
273
|
+
return receiveRecord(this.socket, dontWait, this.nextRequestSequence, this.replyParts);
|
|
249
274
|
}
|
|
250
275
|
}
|
|
251
276
|
class NodeRawDealerPort extends NodeRawSocketPort {
|
|
@@ -261,7 +286,7 @@ class NodeRawDealerPort extends NodeRawSocketPort {
|
|
|
261
286
|
requireParts(parts);
|
|
262
287
|
return (0, node_backend_adapter_support_1.submitBindingAsyncSend)(this.socket.send(), parts);
|
|
263
288
|
}
|
|
264
|
-
async request(parts, timeoutMs) {
|
|
289
|
+
async request(parts, timeoutMs, onAdmitted) {
|
|
265
290
|
this.requireOpen();
|
|
266
291
|
const deadlineMs = performance.now() + timeoutMs;
|
|
267
292
|
let submission;
|
|
@@ -272,8 +297,8 @@ class NodeRawDealerPort extends NodeRawSocketPort {
|
|
|
272
297
|
throw (0, node_backend_adapter_support_1.translateBindingResultError)(error, 'submit');
|
|
273
298
|
}
|
|
274
299
|
try {
|
|
275
|
-
const replies = await (0, node_backend_adapter_support_1.bindingRequestReply)(submission, deadlineMs);
|
|
276
|
-
return
|
|
300
|
+
const replies = await (0, node_backend_adapter_support_1.bindingRequestReply)(submission, deadlineMs, undefined, onAdmitted);
|
|
301
|
+
return retainAndClose(replies);
|
|
277
302
|
}
|
|
278
303
|
catch (error) {
|
|
279
304
|
throw (0, node_backend_adapter_support_1.translateBindingResultError)(error, 'completion');
|
|
@@ -385,9 +410,9 @@ function receiveRecord(socket, dontWait, nextRequestSequence, reply) {
|
|
|
385
410
|
throw error;
|
|
386
411
|
}
|
|
387
412
|
}
|
|
388
|
-
function
|
|
413
|
+
function retainAndClose(messages) {
|
|
389
414
|
try {
|
|
390
|
-
return messages.map((message) =>
|
|
415
|
+
return messages.map((message) => runtime_message_1.ZLinkBufferMessage.retainPayload(message));
|
|
391
416
|
}
|
|
392
417
|
finally {
|
|
393
418
|
for (const message of messages)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SubmitResult, type RequestResult as RequestResultValue, type SubmitResult as SubmitResultValue } from '@zlink-systems/zlink';
|
|
2
|
+
import type { ZLinkMeshCompletionHandler } from '../mesh-completion-table';
|
|
2
3
|
import { type RoutingId } from '../../../contracts';
|
|
3
4
|
import type { ApplicationJobQueuePort } from '../../application-jobs/contracts';
|
|
4
5
|
import type { ZLinkDispatchErrorReporter } from '../../channels/dispatch-error-reporter';
|
|
@@ -7,7 +8,7 @@ import type { ServiceInstanceActivationRecoveryEnvelope } from '../../foundation
|
|
|
7
8
|
import { type MeshOperationId, type MeshPeerEntry, type MeshPublisher, type ReadyBatch, type ReadyRecord, type ReceiveBatch, type ServiceSpot, type StreamSessionService, MeshNodeRuntimeState } from '../../foundation/service-runtime-contracts';
|
|
8
9
|
import type { ServiceActorRef, ServiceSpotState } from '../../foundation/service-stateful-registry';
|
|
9
10
|
import { type ServiceAsyncInstanceActivationAuthority, type ServiceInstanceApplicationLifecycle, type ServicePendingInstanceActivation, type ServiceSpotMessageFollowSeal, type ServiceUserSpotOperationHandler, type ServiceUserSpotOperationResult } from '../../foundation/service-stateful-runtime';
|
|
10
|
-
import type { ServiceActorCreateRecord, ServiceDirectSpotRouteFence, ServiceInstanceActivationTarget, ServiceInstanceRouteFence, ServiceSpotRouteFence, ServiceUserSpotCloseRecord, ServiceUserSpotCreateRecord } from '../../foundation/service-stateful-wire-codec';
|
|
11
|
+
import type { ServiceActorCreateRecord, ServiceDirectSpotRouteFence, ServiceInstanceActivationTarget, ServiceInstanceColdActivationTarget, ServiceInstanceRouteFence, ServiceSpotRouteFence, ServiceUserSpotCloseRecord, ServiceUserSpotCreateRecord } from '../../foundation/service-stateful-wire-codec';
|
|
11
12
|
import type { ServiceNodeDescriptor } from '../../foundation/service-topology-registry';
|
|
12
13
|
import { type ServiceApplicationPayload } from '../../foundation/service-wire-m6a-codec';
|
|
13
14
|
import type { ZLinkBackendActorRef, ZLinkBackendMeshNode, ZLinkBackendObjectPlacement } from '../contracts';
|
|
@@ -24,13 +25,12 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
24
25
|
private readonly applicationJobQueue?;
|
|
25
26
|
private readonly applicationJobReceiveFlowFailureSink?;
|
|
26
27
|
private readonly peerAdmissionSealed?;
|
|
28
|
+
private readonly infrastructureTaskRunner?;
|
|
27
29
|
readonly nativeInstance: this;
|
|
28
30
|
private readonly channels;
|
|
29
31
|
private readonly peerIntents;
|
|
30
|
-
private
|
|
31
|
-
|
|
32
|
-
private completionCount;
|
|
33
|
-
private readonly routingId;
|
|
32
|
+
private completionHandler?;
|
|
33
|
+
readonly routingId: string;
|
|
34
34
|
private readonly lifecycleGeneration;
|
|
35
35
|
private bindEndpoint?;
|
|
36
36
|
private advertiseHost?;
|
|
@@ -56,7 +56,7 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
56
56
|
private messageFollowHandler?;
|
|
57
57
|
private dispatchErrors?;
|
|
58
58
|
private readonly peerDisconnectedHandlers;
|
|
59
|
-
constructor(meshName: string, routingId: string | undefined, bindingPort: ZLinkRawBindingPort, applicationJobQueue?: ApplicationJobQueuePort | undefined, applicationJobReceiveFlowFailureSink?: ((error: unknown) => void) | undefined, peerAdmissionSealed?: (() => boolean) | undefined);
|
|
59
|
+
constructor(meshName: string, routingId: string | undefined, bindingPort: ZLinkRawBindingPort, applicationJobQueue?: ApplicationJobQueuePort | undefined, applicationJobReceiveFlowFailureSink?: ((error: unknown) => void) | undefined, peerAdmissionSealed?: (() => boolean) | undefined, infrastructureTaskRunner?: import("../../spots/spot-actor-join-dispatch").ZLinkDetachedTaskRunner | undefined);
|
|
60
60
|
configureObjectPlacement(options: {
|
|
61
61
|
readonly role: ServiceNodeDescriptor['objectRole'];
|
|
62
62
|
readonly placementWeight: number;
|
|
@@ -79,8 +79,8 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
79
79
|
onPeerDisconnected(handler: (endpoint: string) => void): void;
|
|
80
80
|
selectObjectPlacement(stableType: string): ZLinkBackendObjectPlacement;
|
|
81
81
|
instanceSpotPlacementTypes(): readonly string[];
|
|
82
|
-
sendToMissingInstanceSpot(target:
|
|
83
|
-
requestToMissingInstanceSpot(target:
|
|
82
|
+
sendToMissingInstanceSpot(target: ServiceInstanceColdActivationTarget, parts: MessageLike | readonly MessageLike[], deadlineUnixMs: bigint, sourceSpotId?: string, metadata?: ReadonlyMap<string, string>): Promise<SubmitResult>;
|
|
83
|
+
requestToMissingInstanceSpot(target: ServiceInstanceColdActivationTarget, parts: MessageLike | readonly MessageLike[], deadlineUnixMs: bigint, sourceSpotId?: string, metadata?: ReadonlyMap<string, string>, onAdmitted?: () => void): MeshOperationId;
|
|
84
84
|
setRoutingId(routingId: unknown): void;
|
|
85
85
|
setBind(endpoint: string): void;
|
|
86
86
|
setAdvertiseHost(host: string): void;
|
|
@@ -114,19 +114,25 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
114
114
|
readonly endpoint: string;
|
|
115
115
|
}[]): void;
|
|
116
116
|
isObjectClientNodeDirectTarget(targetRid: unknown): boolean;
|
|
117
|
+
observePeerRoute(targetRid: unknown): import("../../foundation/durable-service-request").PeerRouteObservation;
|
|
118
|
+
hasPeerRouteOrConnectionIntent(targetRid: unknown, endpoint: string): boolean;
|
|
117
119
|
isPeerRouteReady(targetRid: unknown, lifecycleGeneration?: bigint): boolean;
|
|
118
|
-
sendToNode(targetRid: unknown, parts: MessageLike | readonly MessageLike[]): Promise<SubmitResultValue>;
|
|
120
|
+
sendToNode(targetRid: unknown, parts: MessageLike | readonly MessageLike[]): SubmitResultValue | Promise<SubmitResultValue>;
|
|
119
121
|
sendInfrastructureControl(targetRid: unknown, record: Uint8Array | readonly Uint8Array[]): Promise<SubmitResultValue>;
|
|
120
122
|
sendInfrastructureControlFrames(targetRid: unknown, frames: readonly Uint8Array[]): Promise<SubmitResultValue>;
|
|
121
123
|
requestInfrastructureControlFrames(targetRid: unknown, frames: readonly Uint8Array[], options?: {
|
|
122
124
|
readonly timeoutMs?: number;
|
|
125
|
+
readonly signal?: AbortSignal;
|
|
126
|
+
readonly onSubmitted?: (signal: AbortSignal) => Promise<void>;
|
|
123
127
|
}): Promise<readonly Uint8Array[]>;
|
|
124
128
|
requestToNode(targetRid: unknown, parts: MessageLike | readonly MessageLike[], options?: {
|
|
125
129
|
readonly timeoutMs?: number;
|
|
130
|
+
readonly onAdmitted?: () => void;
|
|
126
131
|
}): MeshOperationId;
|
|
127
132
|
sendToChannel(channelName: string, parts: MessageLike | readonly MessageLike[]): Promise<SubmitResultValue>;
|
|
128
133
|
requestToChannel(channelName: string, parts: MessageLike | readonly MessageLike[], options?: {
|
|
129
134
|
readonly timeoutMs?: number;
|
|
135
|
+
readonly onAdmitted?: () => void;
|
|
130
136
|
}): MeshOperationId;
|
|
131
137
|
status(): {
|
|
132
138
|
state: MeshNodeRuntimeState;
|
|
@@ -151,6 +157,7 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
151
157
|
weights: number[];
|
|
152
158
|
};
|
|
153
159
|
createPublisher(): MeshPublisher;
|
|
160
|
+
setCompletionHandler(handler: ZLinkMeshCompletionHandler): void;
|
|
154
161
|
setReadyHandler(handler: (readyDomains: number) => number): void;
|
|
155
162
|
createReadyBatch(capacity: number): ReadyBatch;
|
|
156
163
|
createReceiveBatch(messageCapacity: number, partCapacity: number): ReceiveBatch;
|
|
@@ -195,7 +202,7 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
195
202
|
commitSpotMessageFollowIngress(seal: ServiceSpotMessageFollowSeal, target: ServiceDirectSpotRouteFence, durationMs: number): Promise<boolean>;
|
|
196
203
|
forgetSpotRoute(spot: ServiceSpotRouteFence['spot'], authorityOwnerGeneration: bigint, storeVersion?: string): void;
|
|
197
204
|
sendToInstanceSpot(route: ServiceInstanceRouteFence, parts: MessageLike | readonly MessageLike[], sourceSpotId?: string, metadata?: ReadonlyMap<string, string>, instanceIntent?: boolean): Promise<SubmitResult>;
|
|
198
|
-
requestInstanceSpot(route: ServiceInstanceRouteFence, parts: MessageLike | readonly MessageLike[], timeoutMs?: number, sourceSpotId?: string, metadata?: ReadonlyMap<string, string>, instanceIntent?: boolean): MeshOperationId;
|
|
205
|
+
requestInstanceSpot(route: ServiceInstanceRouteFence, parts: MessageLike | readonly MessageLike[], timeoutMs?: number, sourceSpotId?: string, metadata?: ReadonlyMap<string, string>, instanceIntent?: boolean, onAdmitted?: () => void): MeshOperationId;
|
|
199
206
|
actorLookup(actorId: string): {
|
|
200
207
|
actor: ServiceActorRef;
|
|
201
208
|
spotId: string;
|
|
@@ -225,17 +232,19 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
225
232
|
sendToActor(actor: ZLinkBackendActorRef, parts: MessageLike | readonly MessageLike[]): Promise<SubmitResultValue>;
|
|
226
233
|
requestToActor(actor: ZLinkBackendActorRef, parts: MessageLike | readonly MessageLike[], options?: {
|
|
227
234
|
readonly timeoutMs?: number;
|
|
235
|
+
readonly onAdmitted?: () => void;
|
|
228
236
|
}): MeshOperationId;
|
|
229
237
|
actorSendToActor(source: ZLinkBackendActorRef, target: ZLinkBackendActorRef, parts: MessageLike | readonly MessageLike[]): Promise<SubmitResultValue>;
|
|
230
238
|
actorRequestToActor(source: ZLinkBackendActorRef, target: ZLinkBackendActorRef, parts: MessageLike | readonly MessageLike[], options?: {
|
|
231
239
|
readonly timeoutMs?: number;
|
|
240
|
+
readonly onAdmitted?: () => void;
|
|
232
241
|
}): MeshOperationId;
|
|
233
242
|
sendActorBoundSession(actor: ZLinkBackendActorRef, expectedBindingGeneration: bigint, parts: MessageLike | readonly MessageLike[], _flags?: number): Promise<SubmitResultValue>;
|
|
234
243
|
closeActorBoundSession(actor: ZLinkBackendActorRef, expectedBindingGeneration: bigint, timeoutMs?: number): MeshOperationId;
|
|
235
244
|
leaveActor(actor: ZLinkBackendActorRef, expectedMembershipEpoch: bigint, timeoutMs?: number): MeshOperationId;
|
|
236
245
|
createStreamSessionService(stream: unknown): StreamSessionService;
|
|
237
246
|
sendFromSpot(source: ServiceSpotState, target: ServiceDirectSpotRouteFence, parts: MessageLike | readonly MessageLike[]): Promise<SubmitResultValue>;
|
|
238
|
-
requestFromSpot(source: ServiceSpotState, target: ServiceDirectSpotRouteFence, parts: MessageLike | readonly MessageLike[], timeoutMs: number): MeshOperationId;
|
|
247
|
+
requestFromSpot(source: ServiceSpotState, target: ServiceDirectSpotRouteFence, parts: MessageLike | readonly MessageLike[], timeoutMs: number, onAdmitted?: () => void): MeshOperationId;
|
|
239
248
|
closeSpot(state: ServiceSpotState): boolean;
|
|
240
249
|
publishFromSpot(state: ServiceSpotState, channelName: string, topic: string, parts: MessageLike | readonly MessageLike[]): Promise<void>;
|
|
241
250
|
setSpotSubscription(state: ServiceSpotState, channelName: string, topicFilter: string): void;
|
|
@@ -249,11 +258,8 @@ export declare class ZLinkNodeRawMeshBackend implements ZLinkBackendMeshNode {
|
|
|
249
258
|
private notifyReady;
|
|
250
259
|
private observeCompletion;
|
|
251
260
|
private observeStateful;
|
|
252
|
-
private
|
|
253
|
-
private
|
|
254
|
-
private drainCompletions;
|
|
255
|
-
private takeCompletion;
|
|
256
|
-
private clearCompletions;
|
|
261
|
+
private observeImmediateFailure;
|
|
262
|
+
private deliverCompletion;
|
|
257
263
|
private drainMailbox;
|
|
258
264
|
private requireRuntime;
|
|
259
265
|
private requireApplicationJobQueue;
|