OptionalupdateInterval: numberOptionalstateCallback: StateCallbackNormally () would actually trigger the update only once per updateInterval. If the method is called 200 times within 20s, it will execute only 20 times. Sometimes, if the updates are continuous this would cause a performance impact. Resetting the time ensures that the calls to the update have stopped before actually triggering an update.
Sets the update interval for the spaced update.
The update interval in milliseconds.
Flushes the pending change (if any) and waits until all queued snapshots are persisted.
Swaps the binding to a new target. If the key changes while a change is still pending, the change is first snapshotted with the previous binding (and committed in the background, addressed to the previous key), so it can never be saved under the new key.