ExpirationMapCallback

@ApiStatus.Experimental
@ApiStatus.AvailableSince(value = "5.0.0")
fun interface ExpirationMapCallback<K, V>

A wrapper around a function, which might be called when an element of an ExpirationMap expires.

Parameters

K

The type of the key.

V

The type of the value.

Functions

Link copied to clipboard
abstract fun onExpire(key: K, value: V)

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