Interface RunnableQueue.IdleRunnable

All Superinterfaces:
Runnable
All Known Implementing Classes:
SVGAnimationEngine.AnimationTickRunnable, SVGAnimationEngine.DebugAnimationTickRunnable
Enclosing class:
RunnableQueue

public static interface RunnableQueue.IdleRunnable extends Runnable
A Runnable that can also inform the caller how long it should be until it is run again.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the system time that can be safely waited until before this Runnable is run again.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • getWaitTime

      long getWaitTime()
      Returns the system time that can be safely waited until before this Runnable is run again.
      Returns:
      time to wait until, 0 if no waiting can be done, or Long.MAX_VALUE if the Runnable should not be run again at this time