StaticfromSerializes to JSON
a JSON object with a single key, JSON_KEY_EXPIRY, whose value is the expiry as a string
StaticfromDeserializes a JsonnableExpiry object from a JSON string.
The JSON string to deserialize.
The deserialized Expiry object.
Staticis
Creates an Expiry object from a delta in milliseconds. If the delta is less than 90 seconds, it is rounded to the nearest second. Otherwise, the delta is rounded down to the nearest minute, with a replica permitted drift subtracted.