Companion

object Companion

Functions

none
Link copied to clipboard
fun none(): Expiry

The document will never expire.

of
Link copied to clipboard
fun of(instant: Instant): Expiry

The document will expire at the given instant. If the instant is in the recent past, the document will expire immediately.

fun of(duration: Duration): Expiry

The document will expire after the given duration.

ofDays
Link copied to clipboard
fun ofDays(days: Long): Expiry

The document will expire after the given number of days. Shorthand for Expiry.of(x.days)

ofHours
Link copied to clipboard
fun ofHours(hours: Long): Expiry

The document will expire after the given number of hours. Shorthand for Expiry.of(Duration.ofHours(x))

ofMinutes
Link copied to clipboard
fun ofMinutes(minutes: Long): Expiry

The document will expire after the given number of minutes. Shorthand for Expiry.of(x.minutes)

ofSeconds
Link copied to clipboard
fun ofSeconds(seconds: Long): Expiry

The document will expire after the given number of seconds. Shorthand for Expiry.of(x.seconds)