Skip to content

TileCacheGenerationOptions

Namespace: ThinkGeo.Core

Represents the throttling and retry settings used while generating raster tile caches.

public class TileCacheGenerationOptions

Inheritance object → TileCacheGenerationOptions

Properties

MaxConcurrency

Gets or sets the number of tile workers that draw, encode and save at once.

public int MaxConcurrency { get; set; }

Property Value

int

Remarks:

Each worker draws with its own set of layers, because a layer that is not ConcurrentAccess.Safe is drawn under a lock on its instance and workers sharing it would draw one at a time. From a layer collection the generator deep-clones, for each worker beyond the first, every layer that says ConcurrentAccess.UnsafeClone - a layer that is open, that cannot be cloned, or that says ConcurrentAccess.UnsafeLock stays shared and is drawn under its lock - and closes the clones when it is done. From a layer factory each worker draws with the layers its own call returned. Safe layers are shared by every worker either way.

TileDelay

Gets or sets the minimum delay between starting tile-generation requests.

public TimeSpan TileDelay { get; set; }

Property Value

TimeSpan

RetryCount

Gets or sets the number of retry attempts for a failed tile-generation request.

public int RetryCount { get; set; }

Property Value

int

RetryDelay

Gets or sets the delay to wait before retrying a failed tile-generation request.

public TimeSpan RetryDelay { get; set; }

Property Value

TimeSpan

Constructors

TileCacheGenerationOptions()

public TileCacheGenerationOptions()