Cotal TypeScript packages
    Preparing search index...

    Interface DeliveryServiceHandle

    A hosted delivery context, with the native bindings of its data-account connections.

    interface DeliveryServiceHandle {
        close(): Promise<void>;
        drain(): Promise<void>;
        nativeConnections(): DeliveryNativeConnection[];
        readiness(): HostedServiceState | Promise<HostedServiceState>;
    }

    Hierarchy (View Summary)

    Index
    • Idempotently release only the resources this context owns.

      Returns Promise<void>

    • Stop admission and settle only already accepted, bounded work.

      Returns Promise<void>

    • Every data-account connection this context holds now: the endpoint's, the membership feed's conn B when the feed runs, and the timer writer's. A host compares the list with a complete native census of the account to show that no other connection uses it. The list proves neither liveness nor the absence of other connections. Connections in the system account (the membership observer and the sweeps) are not listed. A context that closed successfully reports none. It throws while there is no settled answer: while the timer writer is not connected, while a connection is down or redialing, during a credential adoption, and during or after a close that did not succeed. No credential or connection object is returned.

      Returns DeliveryNativeConnection[]