Class ConcurrentDecoderFacade

Default concurrent decoder helper.

A convenient singleton that maintains a separate [[ConcurrentWorkerSet]] for each bundle requested. Provides easy access to WorkerBasedDecoders for data sources.

Hierarchy

  • ConcurrentDecoderFacade

Constructors

Properties

defaultScriptUrl: string = "./decoder.bundle.js"

The URL containing a script to fall back (default) to when looking for worker sets and decoders.

defaultWorkerCount?: number = undefined

The default number of workers.

Methods

  • Returns a WorkerBasedDecoder instance.

    Parameters

    • decoderServiceType: string

      The name of the decoder service type.

    • Optional scriptUrl: string

      The optional URL with the workers' script.

    • Optional workerCount: number

      The number of web workers to use.

    • Optional workerConnectionTimeout: number

      Timeout in seconds to connect to the web worker.

    Returns ITileDecoder

  • Returns a [[ConcurrentWorkerSet]] instance based on the script URL specified.

    Parameters

    • Optional scriptUrl: string

      The optional URL with the workers' script. If not specified, the function uses [[defaultScriptUrl]] instead.

    • Optional workerCount: number

      The number of web workers to use.

    • Optional workerConnectionTimeout: number

      Timeout in seconds to connect to the web worker.

    Returns ConcurrentWorkerSet

Generated using TypeDoc