Async expiration update ( Touch ) with over 30 days, is it supported?

Hi Ekaterina,

For the async method that takes an int, if the value is less than the number of seconds in 30 days then it’s treated as a duration in seconds. If it the value is greater, it’s interpreted as an absolute Unix timestamp (seconds since January 1, 1970).

A 90 day timeout can be expressed as:

int expiration = (int) MILLISECONDS.toSeconds(
    System.currentTimeMillis() + DAYS.toMillis(90));

I don’t know the history of why the sync and async APIs differ, but there’s more discussion in this other thread:

2 Likes