Delayed

A mix-in style interface for marking objects that should be acted upon after a given delay.

<p>An implementation of this interface must define a {@code compareTo} method that provides an ordering consistent with its {@code getDelay} method.

@author Doug Lea

interface Delayed : Comparable!(Delayed) {}

Members

Functions

getDelay
Duration getDelay()

Returns the remaining delay associated with this object, in the given time unit.

Meta