Skip to main content
Version: 2.9

BurstTransaction

BurstTransactions are designed to continuously apply high rates of updates on properties (FIFO ordering). The only operation supported by BurstTransactions is to update properties of an instance.

Unlike classical Transactions, a burst transaction preserves the order of update operations and is designed to handle many updates per second for smooth shared animations.

Example of use: A marker representing a red dot on the screen which coordinate properties are controlled by motion sensors of an IoT device should use BurstTransaction instead of a bunch of continuous classical Transaction to have fluid movements on the screen.

Constructors

new BurstTransaction()

new BurstTransaction(): BurstTransaction

Returns

BurstTransaction

Methods

complete()

complete(): Promise<void>

Commit and close the burst transaction

Returns

Promise<void>

A Promise completing with commit success/failure


push()

push<T>(object, values): void

Push all property values from specified Observable to update specified object

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
objectCloudObjectthe object to update
valuesObservable<Map<Property<T>, T>>observable mapping properties to new values

Returns

void