The document will never expire.
The document will expire at the given instant. If the instant is in the recent past, the document will expire immediately.
The document will expire after the given duration.
The document will expire after the given number of days. Shorthand for Expiry.of(x.days)
Expiry.of(x.days)
The document will expire after the given number of hours. Shorthand for Expiry.of(Duration.ofHours(x))
Expiry.of(Duration.ofHours(x))
The document will expire after the given number of minutes. Shorthand for Expiry.of(x.minutes)
Expiry.of(x.minutes)
The document will expire after the given number of seconds. Shorthand for Expiry.of(x.seconds)
Expiry.of(x.seconds)