mutate Document With Ttl
abstract fun mutateDocumentWithTtl(sidOrUniqueName: String, ttlSeconds: Long, mutator: SyncMutator, callback: SuccessListener<String>): CancellationToken
Mutate value of the SyncDocumentJava without opening it using provided Mutator function.
Return
CancellationToken which allows to cancel network request.
Parameters
sid Or Unique Name
SID or unique name of existing SyncDocumentJava.
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.