Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.persistence/Expiry

Expiry

sealed class 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.

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
expiryTime
Link copied to clipboard
abstract fun expiryTime(): Long

Returns the expiry time as a Long for this Expiry. For special cases, this value will be negative; for specific times in the future, this value will be positive.

hashCode
Link copied to clipboard
open override fun hashCode(): Int
timeRemaining
Link copied to clipboard
abstract fun timeRemaining(): Long

Returns the time remaining in seconds for this Expiry before it will expire.

Generated by Dokka
(c) Tealium 2026