Skip to main content

flywave-mapview.concurrentdecoderfacade

Home > @flywave/flywave-mapview > ConcurrentDecoderFacade

ConcurrentDecoderFacade class​

Default concurrent decoder helper.

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

Signature:

export declare class ConcurrentDecoderFacade 

Properties​

Property

Modifiers

Type

Description

defaultScriptUrl

static

string

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

defaultWorkerCount?

static

number

(Optional) The default number of workers.

Methods​

Method

Modifiers

Description

destroy()

static

Destroys all managed [[ConcurrentWorkerSet]]s.

destroyIfTerminated()

static

Destroys this [[ConcurrentDecoderFacade]] if all of the [[ConcurrentWorkerSet]]s are terminated.

destroyWorkerSet(scriptUrl)

static

Destroys a [[ConcurrentWorkerSet]] instance.

getTileDecoder(decoderServiceType, scriptUrl, workerCount, workerConnectionTimeout)

static

Returns a WorkerBasedDecoder instance.

getWorkerSet(scriptUrl, workerCount, workerConnectionTimeout)

static

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