Interface Delayed

All Superinterfaces:
Comparable<Delayed>
All Known Subinterfaces:
ScheduledFuture<V>

public interface Delayed extends Comparable<Delayed>
Something that is due after a delay, ordered by when it is due.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    How long until this is due in unit; zero or negative once it is.

    Methods inherited from interface Comparable

    compareTo
  • Method Details

    • getDelay

      long getDelay(TimeUnit unit)
      How long until this is due in unit; zero or negative once it is.