RequestScheduler

The request scheduler is used to track and constrain the number of active requests in order to prioritize incoming requests. The ability to retain control over the number of requests in CesiumJS is important because due to events such as changes in the camera position, a lot of new requests may be generated and a lot of in-flight requests may become redundant. The request scheduler manually constrains the number of requests so that newer requests wait in a shorter queue and don't have to compete for bandwidth with requests that have expired.

Members

static Cesium.RequestScheduler.maximumRequests : Number

The maximum number of simultaneous active requests. Un-throttled requests do not observe this limit.
Default Value: 50

static Cesium.RequestScheduler.maximumRequestsPerServer : Number

The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically listed in requestsByServer do not observe this limit.
Default Value: 6

static Cesium.RequestScheduler.requestsByServer : Object

A per server key list of overrides to use for throttling instead of maximumRequestsPerServer
Example:
RequestScheduler.requestsByServer = {
  'api.cesium.com:443': 18,
  'assets.cesium.com:443': 18
};

static Cesium.RequestScheduler.throttleRequests : Boolean

Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.
Default Value: true