ExpiryPolicy

Represents the Expiry Policy for a persisted data value. Unlike the Expiry class, which may hold a specific expiry time, the ExpiryPolicy produces an Expiry based on the current time when resolved.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
val value: Long

Functions

Link copied to clipboard
open override fun asDataItem(): DataItem

Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be:

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Resolves the ExpiryPolicy to an Expiry based on the current time.