Expireable

@ApiStatus.Internal
@ApiStatus.Experimental
@ApiStatus.AvailableSince(value = "5.0.0")
interface Expireable<V> : Delayed

Functions

Link copied to clipboard
open operator override fun compareTo(other: Delayed?): Int
Link copied to clipboard
open override fun getDelay(unit: TimeUnit): Long
Link copied to clipboard
open fun remainingTime(current: Instant? = null): Duration

The Duration of time until the value expires.

Properties

Link copied to clipboard
abstract val expireIn: Duration
Link copied to clipboard
abstract val startTime: Instant
Link copied to clipboard
abstract val value: V

Inheritors

Link copied to clipboard
Link copied to clipboard