mutate Data With Ttl
abstract fun mutateDataWithTtl(ttlSeconds: Long, mutator: SyncMutator, callback: SuccessListener<SyncDocumentJava>): CancellationToken
Mutate value of the SyncDocumentJava using provided Mutator function. Once this method finished the jsonData property contains updated document data.
Return
CancellationToken which allows to cancel network request.
Parameters
ttl Seconds
Time to live in seconds from now or 0 to indicate no expiry.
mutator
SyncMutator which will be applied to document data.
callback
Async result listener that will receive new value of the SyncDocumentJava as a serialised JSON object in its onSuccess() callback or any error in onFailure() callback.