set Ttl
abstract fun setTtl(sidOrUniqueName: String, ttlSeconds: Long, callback: SuccessListener<Unit>): CancellationToken
Set time to live for SyncListJava without opening it.
This TTL specifies the minimum time the object will live, sometime soon after this time the object will be deleted.
If time to live is not specified, object lives infinitely long.
TTL could be used in order to auto-recycle old unused objects, but building app logic, like timers, using TTL is not recommended.
Return
CancellationToken which allows to cancel network request.
Parameters
sid Or Unique Name
SID or unique name of existing SyncListJava.
ttl Seconds
Time to live in seconds from now or 0 to indicate no expiry.
callback
Async result listener. See SuccessListener.