ExpirationCallback

@API(status = API.Status.EXPERIMENTAL, since = "5.0.0")
fun interface ExpirationCallback<E>

A wrapper around a function that might be called when an expire-able element expires.

Parameters

E

The type of the element.

Functions

Link copied to clipboard
abstract fun onExpire(element: E)

Called when an element has expired and is removed from its holder.