Class PrioritizedRunnable

All Implemented Interfaces:
java.lang.Comparable<PrioritizedRunnable>, java.lang.Runnable
Direct Known Subclasses:

public abstract class PrioritizedRunnable
extends java.lang.Object
implements java.lang.Runnable, java.lang.Comparable<PrioritizedRunnable>
  • Constructor Summary

    Modifier Constructor Description
    protected PrioritizedRunnable​(Priority priority)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(PrioritizedRunnable pr)  
    long getAgeInMillis()
    The elapsed time in milliseconds since this instance was created, as calculated by the difference between System.nanoTime() at the time of creation, and System.nanoTime() at the time of invocation of this method
    long getCreationDateInNanos()  
    Priority priority()  
    static WrappedRunnable wrap​(java.lang.Runnable runnable, Priority priority)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Runnable