Expiry
This class describes the expiration time of a given resource. Some fixed values are available to tie the expiration to a given event. SESSION will expire upon the start of a new session being created UNTIL_RESTART will expire upon the next launch of the application FOREVER will not expire
For specific expiration timings, there are utility methods to handle future dates. afterDate/afterEpochTime/afterTimeUnit will all produces Expiry values that will expire at future times.
It is accurate to the second.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the time remaining in seconds for this Expiry before it will expire.