Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Properties

Static defaultScriptUrl

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

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

Static Optional defaultWorkerCount

defaultWorkerCount: undefined | number = undefined

The default number of workers.

Methods

Static destroy

  • destroy(): void

Static destroyIfTerminated

  • destroyIfTerminated(): void

Static destroyWorkerSet

  • destroyWorkerSet(scriptUrl: string): void

Static getTileDecoder

  • getTileDecoder(decoderServiceType: string, scriptUrl?: undefined | string, workerCount?: undefined | number, workerConnectionTimeout?: undefined | number): ITileDecoder
  • Returns a WorkerBasedDecoder instance.

    Parameters

    • decoderServiceType: string

      The name of the decoder service type.

    • Optional scriptUrl: undefined | string

      The optional URL with the workers' script.

    • Optional workerCount: undefined | number

      The number of web workers to use.

    • Optional workerConnectionTimeout: undefined | number

      Timeout in seconds to connect to the web worker.

    Returns ITileDecoder

Static getWorkerSet

  • getWorkerSet(scriptUrl?: undefined | string, workerCount?: undefined | number, workerConnectionTimeout?: undefined | number): ConcurrentWorkerSet

Generated using TypeDoc