All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.RequestScheduler.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

package cesium

/**
 * 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.
 * @see Online Documentation
 */
@JsName("\$cesium__RequestScheduler")
external object RequestScheduler {
    /**
     * The maximum number of simultaneous active requests. Un-throttled requests do not observe this limit.
     * @see Online Documentation
     */
    var maximumRequests: Int

    /**
     * The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically
     * listed in [requestsByServer] do not observe this limit.
     * @see Online Documentation
     */
    var maximumRequestsPerServer: Int

    /**
     * A per server key list of overrides to use for throttling instead of `maximumRequestsPerServer`
     * ```
     * RequestScheduler.requestsByServer = {
     *   'api.cesium.com:443': 18,
     *   'assets.cesium.com:443': 18
     * };
     * ```
     * @see Online Documentation
     */
    var requestsByServer: Any

    /**
     * Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.
     * @see Online Documentation
     */
    var throttleRequests: Boolean
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy