src/bundlingCalls/bundleExecutor.ts
BundleExecutor stores several timers for each bundle (calls are bundled based on the options passed, each bundle has unique ID that is calculated based on field values). Each timer fires and sends a call after certain amount of time, and if a new request comes to the same bundle, the timer can be restarted.
Properties |
Methods |
constructor(bundleOptions: BundleOptions, bundleDescriptor: BundleDescriptor)
|
||||||||||||
Defined in src/bundlingCalls/bundleExecutor.ts:65
|
||||||||||||
Organizes requests for an api service that requires to bundle them.
Parameters :
|
_descriptor |
Type : BundleDescriptor
|
Defined in src/bundlingCalls/bundleExecutor.ts:61
|
_invocationId |
Type : number
|
Defined in src/bundlingCalls/bundleExecutor.ts:65
|
_invocations |
Type : literal type
|
Defined in src/bundlingCalls/bundleExecutor.ts:64
|
_options |
Type : BundleOptions
|
Defined in src/bundlingCalls/bundleExecutor.ts:60
|
_tasks |
Type : literal type
|
Defined in src/bundlingCalls/bundleExecutor.ts:62
|
_timers |
Type : literal type
|
Defined in src/bundlingCalls/bundleExecutor.ts:63
|
_runNow | ||||||||
_runNow(bundleId: string)
|
||||||||
Defined in src/bundlingCalls/bundleExecutor.ts:261
|
||||||||
Invokes a task.
Parameters :
Returns :
void
|
schedule | ||||||||||||||||
schedule(apiCall: SimpleCallbackFunction, request: literal type, callback?: TaskCallback)
|
||||||||||||||||
Defined in src/bundlingCalls/bundleExecutor.ts:94
|
||||||||||||||||
Schedule a method call.
Parameters :
Returns :
any
|